use of org.talend.esb.mep.requestcallback.sample.internal.ServiceProviderHandler 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);
}
use of org.talend.esb.mep.requestcallback.sample.internal.ServiceProviderHandler 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);
}
Aggregations