/** * Create a ServiceGroupContext for the specified service group, and notify any registered * ContextListener. * * @param serviceGroup an AxisServiceGroup * @return a new ServiceGroupContext */ public ServiceGroupContext createServiceGroupContext(AxisServiceGroup serviceGroup) { ServiceGroupContext sgCtx = new ServiceGroupContext(this, serviceGroup); contextCreated(sgCtx); return sgCtx; }
/** * Create a ServiceGroupContext for the specified service group, and notify any registered * ContextListener. * * @param serviceGroup an AxisServiceGroup * @return a new ServiceGroupContext */ public ServiceGroupContext createServiceGroupContext(AxisServiceGroup serviceGroup) { ServiceGroupContext sgCtx = new ServiceGroupContext(this, serviceGroup); contextCreated(sgCtx); return sgCtx; }
public void execute(ConfigurationContext configContext) throws ClusteringFault { ServiceGroupContext sgCtx = configContext.getServiceGroupContext(serviceGroupContextId); // If the ServiceGroupContext is not found, create it if (sgCtx == null) { AxisServiceGroup axisServiceGroup = configContext.getAxisConfiguration().getServiceGroup(serviceGroupName); if(axisServiceGroup == null){ return; } sgCtx = new ServiceGroupContext(configContext, axisServiceGroup); sgCtx.setId(serviceGroupContextId); configContext.addServiceGroupContextIntoSoapSessionTable(sgCtx); // TODO: Check this } if (log.isDebugEnabled()) { log.debug("Gonna update SG prop in " + serviceGroupContextId + "===" + sgCtx); } propertyUpdater.updateProperties(sgCtx); }
public void execute(ConfigurationContext configContext) throws ClusteringFault { ServiceGroupContext sgCtx = configContext.getServiceGroupContext(serviceGroupContextId); // If the ServiceGroupContext is not found, create it if (sgCtx == null) { AxisServiceGroup axisServiceGroup = configContext.getAxisConfiguration().getServiceGroup(serviceGroupName); if(axisServiceGroup == null){ return; } sgCtx = new ServiceGroupContext(configContext, axisServiceGroup); sgCtx.setId(serviceGroupContextId); configContext.addServiceGroupContextIntoSoapSessionTable(sgCtx); // TODO: Check this } if (log.isDebugEnabled()) { log.debug("Gonna update SG prop in " + serviceGroupContextId + "===" + sgCtx); } propertyUpdater.updateProperties(sgCtx); }
return; sgCtx = new ServiceGroupContext(configurationContext, serviceGroup); sgCtx.setId(serviceGroupContextId); if (scope.equals(Constants.SCOPE_APPLICATION)) {
return; sgCtx = new ServiceGroupContext(configurationContext, serviceGroup); sgCtx.setId(serviceGroupContextId); if (scope.equals(Constants.SCOPE_APPLICATION)) {
new ServiceGroupContext(configurationContext, (AxisServiceGroup) anonymousService.getParent()); ServiceContext serviceCtx = serviceGroupContext.getServiceContext(anonymousService);
endpointDefinition.isSecurityOn(), false); anonymousService.getParent().addParameter(SynapseConstants.HIDDEN_SERVICE_PARAM, "true"); ServiceGroupContext serviceGroupContext = new ServiceGroupContext(configurationContext, (AxisServiceGroup) anonymousService.getParent()); ServiceContext serviceCtx = serviceGroupContext.getServiceContext(anonymousService); axisOutMsgCtx.setServiceContext(serviceCtx);
ServiceGroupContext sgc = new ServiceGroupContext( axisCfgCtx, (AxisServiceGroup) anoymousService.getParent()); ServiceContext serviceCtx = sgc.getServiceContext(anoymousService);
ServiceGroupContext sgc = new ServiceGroupContext( axisCfgCtx, (AxisServiceGroup) anonymousService.getParent()); ServiceContext serviceCtx = sgc.getServiceContext(anonymousService);
new ServiceGroupContext(configurationContext, (AxisServiceGroup) anonymousService.getParent()); ServiceContext serviceCtx = serviceGroupContext.getServiceContext(anonymousService);
public static OperationClient getOperationClient(BPELMessageContext partnerMessageContext, ConfigurationContext clientConfigCtx) throws AxisFault { AxisService anonymousService = AnonymousServiceFactory.getAnonymousService(partnerMessageContext.getService(), partnerMessageContext.getPort(), clientConfigCtx.getAxisConfiguration(), partnerMessageContext.getCaller()); anonymousService.engageModule(clientConfigCtx.getAxisConfiguration().getModule("UEPModule")); anonymousService.getParent().addParameter( BPELConstants.HIDDEN_SERVICE_PARAM, "true"); ServiceGroupContext sgc = new ServiceGroupContext( clientConfigCtx, (AxisServiceGroup) anonymousService.getParent()); ServiceContext serviceCtx = sgc.getServiceContext(anonymousService); // get a reference to the DYNAMIC operation of the Anonymous Axis2 service AxisOperation axisAnonymousOperation = anonymousService.getOperation( partnerMessageContext.isTwoWay() ? ServiceClient.ANON_OUT_IN_OP : ServiceClient.ANON_OUT_ONLY_OP); Options clientOptions = cloneOptions(partnerMessageContext.getInMessageContext().getOptions()); clientOptions.setExceptionToBeThrownOnSOAPFault(false); /* This value doesn't overrideend point config. */ clientOptions.setTimeOutInMilliSeconds(60000); return axisAnonymousOperation.createClient(serviceCtx, clientOptions); }
newMessageContext.setServiceGroupContextId(referenceMessage.getServiceGroupContextId()); } else { ServiceGroupContext serviceGroupContext = new ServiceGroupContext ( configContext,referenceMessage.getAxisServiceGroup()); newMessageContext.setServiceGroupContext(serviceGroupContext); ServiceGroupContext serviceGroupContext = new ServiceGroupContext(configContext, axisServiceGroup);