public void init(SynapseEnvironment synapseEnvironment) { if (endpoint != null) { endpoint.init(synapseEnvironment); } }
public void init(SynapseEnvironment synapseEnvironment) { if (endpoint != null) { endpoint.init(synapseEnvironment); } }
/** * Override the <code>AbstractEndpoint.init()</code> to load a custom synapse * environment. */ public void init(SynapseEnvironment synapseEnvironment){ if (log.isDebugEnabled()) { log.debug("Initiate the synapse environment of the class endpoint"); } try { classEndpoint.init(synapseEnvironment); } catch (Exception e) { throw new SynapseException("Error occured when initiate the class endpoint", e); } }
public void init(SynapseEnvironment se) { for (Target target : targets) { ManagedLifecycle seq = target.getSequence(); if (seq != null) { seq.init(se); } Endpoint endpoint = target.getEndpoint(); if (endpoint != null) { endpoint.init(se); } } }
public void init(SynapseEnvironment se) { if (target != null) { Endpoint endpoint = target.getEndpoint(); if (endpoint != null) { endpoint.init(se); } ManagedLifecycle seq = target.getSequence(); if (seq != null) { seq.init(se); } } }
public Endpoint getEndpoint(String key) { Object o = localEntries.get(key); if (o != null && o instanceof Endpoint) { return (Endpoint) o; } else { Endpoint e = getConfiguration().getEndpoint(key); if (e != null) { if (!e.isInitialized()) { synchronized (e) { if (!e.isInitialized()) { e.init(synEnv); } } } localEntries.put(key, e); } return e; } }
public Endpoint getEndpoint(String key) { Object o = localEntries.get(key); if (o != null && o instanceof Endpoint) { return (Endpoint) o; } else { Endpoint e = getConfiguration().getEndpoint(key); if (e != null) { if (!e.isInitialized()) { synchronized (e) { if (!e.isInitialized()) { e.init(synEnv); } } } localEntries.put(key, e); } return e; } }
+ "' has been built from the file " + fileName); ep.init(getSynapseEnvironment()); if (log.isDebugEnabled()) { log.debug("Initialized the endpoint : " + ep.getName());
public Endpoint getEndpoint(String key) { Object o = localEntries.get(key); if (o != null && o instanceof Endpoint) { return (Endpoint) o; } else { Endpoint e = getConfiguration().getEndpoint(key); synchronized (e) { if (!e.isInitialized()) { e.init(synEnv); } } localEntries.put(key, e); return e; } }
public void init(SynapseEnvironment synapseEnvironment) { this.synapseEnv = synapseEnvironment; if (endpoint != null) { endpoint.init(synapseEnvironment); } if (blocking) { try { configCtx = ConfigurationContextFactory.createConfigurationContextFromFileSystem( clientRepository != null ? clientRepository : DEFAULT_CLIENT_REPO, axis2xml != null ? axis2xml : DEFAULT_AXIS2_XML); blockingMsgSender = new BlockingMsgSender(); blockingMsgSender.setConfigurationContext(configCtx); blockingMsgSender.init(); } catch (AxisFault axisFault) { String msg = "Error while initializing the Call mediator"; log.error(msg, axisFault); throw new SynapseException(msg, axisFault); } } else { synapseEnvironment.updateCallMediatorCount(true); } }
realEndpoint.init(se);
private Endpoint loadAndInitEndpoint(ConfigurationContext cc, String key) { Parameter parameter = cc.getAxisConfiguration().getParameter( SynapseConstants.SYNAPSE_CONFIG); Parameter synEnvParameter = cc.getAxisConfiguration().getParameter( SynapseConstants.SYNAPSE_ENV); if (parameter.getValue() instanceof SynapseConfiguration && synEnvParameter.getValue() instanceof SynapseEnvironment) { SynapseConfiguration synCfg = (SynapseConfiguration) parameter.getValue(); SynapseEnvironment synapseEnvironment = (SynapseEnvironment) synEnvParameter.getValue(); if (log.isDebugEnabled()) { log.debug("Loading real endpoint with key : " + key); } Endpoint ep = synCfg.getEndpoint(key); if (ep != null && !ep.isInitialized()) { synchronized (ep) { ep.init(synapseEnvironment); } } return ep; } return null; }
public Endpoint loadAndInitEndpoint(ConfigurationContext cc, String key) { Parameter parameter = cc.getAxisConfiguration().getParameter( SynapseConstants.SYNAPSE_CONFIG); Parameter synEnvParameter = cc.getAxisConfiguration().getParameter( SynapseConstants.SYNAPSE_ENV); if (parameter.getValue() instanceof SynapseConfiguration && synEnvParameter.getValue() instanceof SynapseEnvironment) { SynapseConfiguration synCfg = (SynapseConfiguration) parameter.getValue(); SynapseEnvironment synapseEnvironment = (SynapseEnvironment) synEnvParameter.getValue(); if (log.isDebugEnabled()) { log.debug("Loading real endpoint with key : " + key); } Endpoint ep = synCfg.getEndpoint(key); if (ep != null && !ep.isInitialized()) { synchronized (ep) { if (!ep.isInitialized()) { ep.init(synapseEnvironment); } } } return ep; } return null; }
public void init(SynapseEnvironment synapseEnvironment) { ConfigurationContext cc = ((Axis2SynapseEnvironment) synapseEnvironment).getAxis2ConfigurationContext(); if (!initialized) { // The check for clustering environment ClusteringAgent clusteringAgent = cc.getAxisConfiguration().getClusteringAgent(); if (clusteringAgent != null && clusteringAgent.getStateManager() != null) { isClusteringEnabled = Boolean.TRUE; } else { isClusteringEnabled = Boolean.FALSE; } context = new EndpointContext(getName(), getDefinition(), isClusteringEnabled, cc, metricsMBean); } initialized = true; if (children != null) { for (Endpoint e : children) { e.init(synapseEnvironment); } } contentAware = definition != null && ((definition.getFormat() != null && !definition.getFormat().equals(SynapseConstants.FORMAT_REST)) || definition.isSecurityOn() || definition.isAddressingOn()); }
public void init(SynapseEnvironment se) { synapseEnv = se; if (target != null) { Endpoint endpoint = target.getEndpoint(); if (endpoint != null) { endpoint.init(se); } ManagedLifecycle seq = target.getSequence(); if (seq != null) { seq.init(se); } else if (target.getSequenceRef() != null) { SequenceMediator targetSequence = (SequenceMediator) se.getSynapseConfiguration(). getSequence(target.getSequenceRef()); if (targetSequence == null || targetSequence.isDynamic()) { se.addUnavailableArtifactRef(target.getSequenceRef()); } } } }
public void init(SynapseEnvironment se) { synapseEnv = se; for (Target target : targets) { ManagedLifecycle seq = target.getSequence(); if (seq != null) { seq.init(se); } else if (target.getSequenceRef() != null) { SequenceMediator targetSequence = (SequenceMediator) se.getSynapseConfiguration(). getSequence(target.getSequenceRef()); if (targetSequence == null || targetSequence.isDynamic()) { se.addUnavailableArtifactRef(target.getSequenceRef()); } } Endpoint endpoint = target.getEndpoint(); if (endpoint != null) { endpoint.init(se); } } }
public void init(SynapseEnvironment synapseEnvironment) { ConfigurationContext cc = ((Axis2SynapseEnvironment) synapseEnvironment).getAxis2ConfigurationContext(); if (!initialized) { // The check for clustering environment ClusteringAgent clusteringAgent = cc.getAxisConfiguration().getClusteringAgent(); if (clusteringAgent != null && clusteringAgent.getStateManager() != null) { isClusteringEnabled = Boolean.TRUE; } else { isClusteringEnabled = Boolean.FALSE; } context = new EndpointContext(getName(), getDefinition(), isClusteringEnabled, cc, metricsMBean); } initialized = true; if (children != null) { for (Endpoint e : children) { e.init(synapseEnvironment); } } contentAware = definition != null && ((definition.getFormat() != null && !definition.getFormat().equals(SynapseConstants.FORMAT_REST)) || definition.isSecurityOn() || definition.isReliableMessagingOn() || definition.isAddressingOn() || definition.isUseMTOM()|| definition.isUseSwa()); }
private void initializeProxy(ProxyService proxy) throws DeploymentException { if (proxy.getTargetInLineEndpoint() != null) { proxy.getTargetInLineEndpoint().init(getSynapseEnvironment()); } if (proxy.getTargetInLineInSequence() != null) { proxy.getTargetInLineInSequence().init(getSynapseEnvironment()); } if (proxy.getTargetInLineOutSequence() != null) { proxy.getTargetInLineOutSequence().init(getSynapseEnvironment()); } if (proxy.getTargetInLineFaultSequence() != null) { proxy.getTargetInLineFaultSequence().init(getSynapseEnvironment()); } } }
private void initializeProxy(ProxyService proxy) throws DeploymentException { if (proxy.getTargetInLineEndpoint() != null) { proxy.getTargetInLineEndpoint().init(getSynapseEnvironment()); } if (proxy.getTargetInLineInSequence() != null) { proxy.getTargetInLineInSequence().init(getSynapseEnvironment()); } if (proxy.getTargetInLineOutSequence() != null) { proxy.getTargetInLineOutSequence().init(getSynapseEnvironment()); } if (proxy.getTargetInLineFaultSequence() != null) { proxy.getTargetInLineFaultSequence().init(getSynapseEnvironment()); } } }
isWrappingEndpointCreated = true; } else { endpoint.init(synEnv);