Search in sources :

Example 1 with SeekBookInBasementHandler

use of org.talend.esb.mep.requestcallback.sample.internal.SeekBookInBasementHandler in project tesb-rt-se by Talend.

the class RequestCallbackJmsTest method subTestServerStartup.

private void subTestServerStartup() throws Exception {
    final SeekBookInBasementHandler businessHandler = new SeekBookInBasementHandler(responseLocation, "classpath:" + wsdlLocation);
    final ServiceProviderHandler implementor = new ServiceProviderHandler(errorTransfer, messageTransfer, businessHandler, operation);
    final JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
    factory.setServiceName(serviceName);
    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);
}
Also used : ServiceProviderHandler(org.talend.esb.mep.requestcallback.sample.internal.ServiceProviderHandler) JmsUriConfigurator(org.talend.esb.mep.requestcallback.beans.JmsUriConfigurator) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean) SeekBookInBasementHandler(org.talend.esb.mep.requestcallback.sample.internal.SeekBookInBasementHandler)

Example 2 with SeekBookInBasementHandler

use of org.talend.esb.mep.requestcallback.sample.internal.SeekBookInBasementHandler in project tesb-rt-se by Talend.

the class RequestCallbackTest method subTestServerStartup.

private void subTestServerStartup() throws Exception {
    final SeekBookInBasementHandler businessHandler = new SeekBookInBasementHandler(responseLocation, "classpath:" + wsdlLocation);
    final ServiceProviderHandler implementor = new ServiceProviderHandler(errorTransfer, messageTransfer, businessHandler, operation);
    final JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
    factory.setServiceName(SERVICE_NAME);
    factory.setEndpointName(PORT_NAME);
    factory.setWsdlLocation(wsdlLocation);
    factory.setServiceBean(implementor);
    CallContext.setupServerFactory(factory);
    server = factory.create();
    sleep(1);
    checkError(false);
}
Also used : ServiceProviderHandler(org.talend.esb.mep.requestcallback.sample.internal.ServiceProviderHandler) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean) SeekBookInBasementHandler(org.talend.esb.mep.requestcallback.sample.internal.SeekBookInBasementHandler)

Aggregations

JaxWsServerFactoryBean (org.apache.cxf.jaxws.JaxWsServerFactoryBean)2 SeekBookInBasementHandler (org.talend.esb.mep.requestcallback.sample.internal.SeekBookInBasementHandler)2 ServiceProviderHandler (org.talend.esb.mep.requestcallback.sample.internal.ServiceProviderHandler)2 JmsUriConfigurator (org.talend.esb.mep.requestcallback.beans.JmsUriConfigurator)1