this.serviceGroupContextId = serviceGroupContextId;
}
public void execute(ConfigurationContext configurationContext) throws ClusteringFault {
log.debug("Updating service context properties...");
ServiceGroupContext sgCtx =
configurationContext.getServiceGroupContext(serviceGroupContextId);
if (sgCtx != null) {
try {
AxisService axisService =
configurationContext.getAxisConfiguration().getService(serviceName);
ServiceContext serviceContext = sgCtx.getServiceContext(axisService);
propertyUpdater.updateProperties(serviceContext);
} catch (AxisFault e) {
throw new ClusteringFault(e);
}
} else {
sgCtx = configurationContext.getServiceGroupContext(serviceGroupContextId);
AxisService axisService;
try {
axisService = configurationContext.getAxisConfiguration().getService(serviceName);
} catch (AxisFault axisFault) {
throw new ClusteringFault(axisFault);
}
String scope = axisService.getScope();
if (sgCtx == null) {
AxisServiceGroup serviceGroup =
configurationContext.getAxisConfiguration().getServiceGroup(serviceGroupName);
if(serviceGroup == null){
return;
}
sgCtx = new ServiceGroupContext(configurationContext, serviceGroup);
sgCtx.setId(serviceGroupContextId);
if (scope.equals(Constants.SCOPE_APPLICATION)) {
configurationContext.
addServiceGroupContextIntoApplicationScopeTable(sgCtx);
} else if (scope.equals(Constants.SCOPE_SOAP_SESSION)) {
configurationContext.
addServiceGroupContextIntoSoapSessionTable(sgCtx);
}
}
try {
ServiceContext serviceContext = sgCtx.getServiceContext(axisService);
propertyUpdater.updateProperties(serviceContext);
} catch (AxisFault axisFault) {
throw new ClusteringFault(axisFault);
}
}