use of org.apache.cxf.frontend.ServerFactoryBean in project cxf by apache.
the class SimpleFrontendTest method createServers.
@BeforeClass
public static void createServers() throws Exception {
bus = BusFactory.getDefaultBus();
ServerFactoryBean sf = new ServerFactoryBean();
sf.setServiceBean(new WSSimpleImpl());
sf.setAddress(add11);
sf.setBus(bus);
sf.create();
}
use of org.apache.cxf.frontend.ServerFactoryBean in project camel by apache.
the class CxfProducerRouterTest method startServer.
@BeforeClass
public static void startServer() throws Exception {
// start a simple front service
ServerFactoryBean svrBean = new ServerFactoryBean();
svrBean.setAddress(SIMPLE_SERVER_ADDRESS);
svrBean.setServiceClass(HelloService.class);
svrBean.setServiceBean(new HelloServiceImpl());
svrBean.setBus(BusFactory.getDefaultBus());
svrBean.create();
}
use of org.apache.cxf.frontend.ServerFactoryBean in project camel by apache.
the class CxfPayLoadMessageXmlBindingRouterTest method startService.
@BeforeClass
public static void startService() {
//start a service
ServerFactoryBean svrBean = new ServerFactoryBean();
svrBean.setAddress(SERVICE_ADDRESS);
svrBean.setServiceClass(HelloService.class);
svrBean.setServiceBean(new HelloServiceImpl());
svrBean.setBindingId(getBindingId());
Server server = svrBean.create();
server.start();
}
use of org.apache.cxf.frontend.ServerFactoryBean in project camel by apache.
the class LoadDistributorFeatureTest method init.
@BeforeClass
public static void init() {
// publish two web-service
ServerFactoryBean factory1 = new ServerFactoryBean();
factory1.setAddress(SERVICE_ADDRESS_1);
factory1.setServiceBean(new HelloServiceImpl(" Server1"));
factory1.create();
ServerFactoryBean factory2 = new ServerFactoryBean();
factory2.setAddress(SERVICE_ADDRESS_2);
factory2.setServiceBean(new HelloServiceImpl(" Server2"));
factory2.create();
}
use of org.apache.cxf.frontend.ServerFactoryBean in project camel by apache.
the class LoggingInterceptorInMessageModeTest method startService.
@BeforeClass
public static void startService() {
//start a service
ServerFactoryBean svrBean = new ServerFactoryBean();
svrBean.setAddress(SERVICE_ADDRESS);
svrBean.setServiceClass(HelloService.class);
svrBean.setServiceBean(new HelloServiceImpl());
server = svrBean.create();
}
Aggregations