applicationSessionServiceGroupContextTable
.put(serviceGroupName, serviceGroupContext);
ClusterManager clusterManager = this.getAxisConfiguration().getClusterManager();
if (clusterManager != null) {
ContextManager contextManager = clusterManager.getContextManager();
if (contextManager != null) {
contextManager.addContext(serviceGroupContext);
}
}
}
messageContext.setServiceGroupContext(serviceGroupContext);
messageContext.setServiceContext(ContextFactory.createServiceContext(
serviceGroupContext, axisService));
} else if (Constants.SCOPE_SOAP_SESSION.equals(scope)) {
String serviceGroupContextId = messageContext.getServiceGroupContextId();
if (serviceGroupContextId != null) {
serviceGroupContext = getServiceGroupContextFromSoapSessionTable(
serviceGroupContextId, messageContext);
if (serviceGroupContext == null) {
throw new AxisFault("Unable to find corresponding context" +
" for the serviceGroupId: " + serviceGroupContextId);
}
} else {
AxisServiceGroup axisServiceGroup = (AxisServiceGroup) axisService.getParent();
serviceGroupContext =
ContextFactory.createServiceGroupContext(this, axisServiceGroup);
serviceContext =
ContextFactory.createServiceContext(serviceGroupContext, axisService);
// set the serviceGroupContextID
serviceGroupContextId = UUIDGenerator.getUUID();
serviceGroupContext.setId(serviceGroupContextId);
ClusterManager clusterManager = this.getAxisConfiguration().getClusterManager();
if (clusterManager != null) {
ContextManager contextManager = clusterManager.getContextManager();
if (contextManager != null) {
contextManager.addContext(serviceGroupContext);
}
}
messageContext.setServiceGroupContextId(serviceGroupContextId);
registerServiceGroupContextintoSoapSessionTable(serviceGroupContext);