public void init(ComponentContext ctx) throws JBIException { this.context = ctx; ctx.activateEndpoint(SERVICE, ENDPOINT); }
/** * Called when the Component is initialized * * @param ctx * @throws javax.jbi.JBIException */ public void init(ComponentContext ctx) throws JBIException { this.context = ctx; if (service != null && endpoint != null) { ctx.activateEndpoint(service, endpoint); } }
public void init(ComponentContext ctx) throws JBIException { this.context = ctx; if (service != null && endpoint != null) { ctx.activateEndpoint(service, endpoint); } }
public void init(ComponentContext ctx) throws JBIException { this.context = ctx; ctx.activateEndpoint(SERVICE, ENDPOINT); }
public ServiceEndpoint activateEndpoint(QName qName, String s) throws JBIException { return getContext().activateEndpoint(qName, s); }
/** * Called when the Component is initialized * * @param cc * @throws JBIException */ public void init(ComponentContext cc) throws JBIException { this.context = cc; this.channel = this.context.getDeliveryChannel(); init(); if (service != null && endpoint != null) { serviceEndpoint = context.activateEndpoint(service, endpoint); } }
/** * Do the JBI endpoint activation. * * @throws JBIException */ public void activate() throws JBIException { count++; if(count != 1) return; if (_serviceref == null) { ServiceEndpoint[] candidates = _ode.getContext().getExternalEndpointsForService(_endpoint.serviceName); if (candidates.length != 0) { _external = candidates[0]; } } _internal = _ode.getContext().activateEndpoint(_endpoint.serviceName, _endpoint.portName); if (__log.isDebugEnabled()) { __log.debug("Activated endpoint " + _endpoint); } // TODO: Is there a race situation here? }
void activatePMAPIs() throws JBIException { ProcessAndInstanceManagementImpl pm = new ProcessAndInstanceManagementImpl(_server, _store); _processManagement = pm; _instanceManagement = pm; _processManagementEndpoint = getContext().activateEndpoint(PM_SERVICE_NAME, PM_PORT_NAME); _instanceManagementEndpoint = getContext().activateEndpoint(IM_SERVICE_NAME, IM_PORT_NAME); _processManagementProcessor = new DynamicMessageExchangeProcessor<ProcessManagement>(pm, getChannel()); _instanceManagementProcessor = new DynamicMessageExchangeProcessor<InstanceManagement>(pm, getChannel()); }
public void activate() throws Exception { super.activate(); ComponentContext ctx = getServiceUnit().getComponent().getComponentContext(); activated = ctx.activateEndpoint(service, endpoint); }
private void register_(final ServiceEndpointKey key, final ProviderService ps, final @Nullable Document description) throws PEtALSCDKException { final ServiceData data = new ServiceData(ps, description == null ? getServiceUnitManager().getServiceDescription(key) : description); if (services.putIfAbsent(key, data) != null) { throw new PEtALSCDKException("Duplicate service " + key); } try { data.endpoint = getContext().activateEndpoint(key.getServiceName(), key.getEndpointName()); getLogger().log(Level.INFO, "New Service Endpoint deployed: " + data.endpoint); } catch (final JBIException e) { services.remove(key); throw new PEtALSCDKException(e); } }
try { ServiceEndpoint se = this.componentContext.activateEndpoint(serviceName, endpointName); return new org.objectweb.petals.tools.rmi.common.serializable. ServiceEndpoint(se.getServiceName(), se.getEndpointName(),