/** * Create a new SCAInvoker for invoking local endpoints. * @param config binding configuration model */ public SCAInvoker(SCABindingModel config) { _bindingName = config.getName(); _referenceName = config.getReference().getName(); _targetService = config.getTarget(); _targetNamespace = config.getTargetNamespace(); _clustered = config.isClustered(); _preferLocal = config.isPreferLocal(); }
/** * Create a new SCAInvoker for invoking local endpoints. * @param config binding configuration model */ public SCAInvoker(SCABindingModel config) { _bindingName = config.getName(); _referenceName = config.getReference().getName(); _targetService = config.getTarget(); _targetNamespace = config.getTargetNamespace(); _clustered = config.isClustered(); _preferLocal = config.isPreferLocal(); }
@Override public ServiceHandler activateBinding(QName name, BindingModel config) { _endpointPublisher.setDisableRemoteTransaction(_disableRemoteTransaction); // Signal the remote endpoint publisher to start. Multiple calls to start are harmless. try { // Note that stop() occurs as part of the SCAComponent lifecycle. _endpointPublisher.start(); } catch (Exception ex) { SCALogger.ROOT_LOGGER.failedToStartRemoteEndpointListenerForSCAEndpoints(ex); } SCABindingModel scab = (SCABindingModel)config; if (scab.isServiceBinding()) { return new SCAEndpoint(scab, super.getServiceDomain(), _endpointPublisher, _registry); } else { if ((scab.getTarget() == null) && (scab.getTargetNamespace() == null)) { throw SCAMessages.MESSAGES.invalidSCABindingForReferenceTargetServiceOrNamespaceMustBeSpecified(); } return new SCAInvoker(scab, _registry) .setDisableRemoteTransaction(_disableRemoteTransaction); } }
@Override public ServiceHandler activateBinding(QName name, BindingModel config) { _endpointPublisher.setDisableRemoteTransaction(_disableRemoteTransaction); // Signal the remote endpoint publisher to start. Multiple calls to start are harmless. try { // Note that stop() occurs as part of the SCAComponent lifecycle. _endpointPublisher.start(); } catch (Exception ex) { SCALogger.ROOT_LOGGER.failedToStartRemoteEndpointListenerForSCAEndpoints(ex); } SCABindingModel scab = (SCABindingModel)config; if (scab.isServiceBinding()) { return new SCAEndpoint(scab, super.getServiceDomain(), _endpointPublisher, _registry); } else { if ((scab.getTarget() == null) && (scab.getTargetNamespace() == null)) { throw SCAMessages.MESSAGES.invalidSCABindingForReferenceTargetServiceOrNamespaceMustBeSpecified(); } return new SCAInvoker(scab, _registry) .setDisableRemoteTransaction(_disableRemoteTransaction); } }