Package org.talend.esb.mep.requestcallback.beans

Examples of org.talend.esb.mep.requestcallback.beans.JmsUriConfigurator


        factory.setEndpointName(portName);
        factory.setWsdlLocation(wsdlLocation);
        factory.setServiceBean(implementor);

        CallContext.setupServerFactory(factory);
        JmsUriConfigurator configurator = JmsUriConfigurator.create(factory);
        factory.setAddress(configurator.getJmsAddress());
        server = factory.create();
        sleep(1);
        checkError(false);
  }
View Full Code Here


        final ClientProviderHandler callbackHandler = new ClientProviderHandler(
            errorTransfer, messageTransfer, callbackMap);
        final Endpoint ep = CallContext.createCallbackEndpoint(
            callbackHandler, wsdlLocation);
        callbackEndpoint = ep;
        JmsUriConfigurator cConfigurator = JmsUriConfigurator.create(ep);
        ep.publish(cConfigurator.getJmsAddress());

        // 2. Create a client
        final Dispatch<StreamSource> dispatcher = service.createDispatch(
            portName, StreamSource.class, Service.Mode.PAYLOAD);
        CallContext.setupDispatch(dispatcher, ep);
        JmsUriConfigurator configurator = JmsUriConfigurator.create(dispatcher);
        configurator.configureDispatch(dispatcher);
        if (mep == REQUEST_CALLBACK_ENFORCED) {
          final QName opName = new QName(serviceName.getNamespaceURI(), operation);
          CallContext.enforceOperation(opName, dispatcher);
        }
View Full Code Here

TOP

Related Classes of org.talend.esb.mep.requestcallback.beans.JmsUriConfigurator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.