public String getContext() { try { AxisEngine engine = AxisServer.getServer(null); return engine.getApplicationSession().toString(); } catch (AxisFault af) { log.error("Getting application context",af); return null; } }
private Object getApplicationScopedObject(MessageContext msgContext, String serviceName, String clsName, IntHolder scopeHolder) throws Exception { AxisEngine engine = msgContext.getAxisEngine(); Session appSession = engine.getApplicationSession(); if (appSession != null) { return getSessionServiceObject(appSession, serviceName, msgContext, clsName); } else { // was no application session - log an error and // treat as request scope log.error(Messages.getMessage("noAppSession")); scopeHolder.value = Scope.DEFAULT.getValue(); return getNewServiceObject(msgContext, clsName); } }
private Object getApplicationScopedObject(MessageContext msgContext, String serviceName, String clsName, IntHolder scopeHolder) throws Exception { AxisEngine engine = msgContext.getAxisEngine(); Session appSession = engine.getApplicationSession(); if (appSession != null) { return getSessionServiceObject(appSession, serviceName, msgContext, clsName); } else { // was no application session - log an error and // treat as request scope log.error(Messages.getMessage("noAppSession")); scopeHolder.value = Scope.DEFAULT.getValue(); return getNewServiceObject(msgContext, clsName); } }
private Object getApplicationScopedObject(MessageContext msgContext, String serviceName, String clsName, IntHolder scopeHolder) throws Exception { AxisEngine engine = msgContext.getAxisEngine(); Session appSession = engine.getApplicationSession(); if (appSession != null) { return getSessionServiceObject(appSession, serviceName, msgContext, clsName); } else { // was no application session - log an error and // treat as request scope log.error(Messages.getMessage("noAppSession")); scopeHolder.value = Scope.DEFAULT.getValue(); return getNewServiceObject(msgContext, clsName); } }