本文整理汇总了Java中org.apache.cxf.jaxws.JaxWsServerFactoryBean.setBus方法的典型用法代码示例。如果您正苦于以下问题:Java JaxWsServerFactoryBean.setBus方法的具体用法?Java JaxWsServerFactoryBean.setBus怎么用?Java JaxWsServerFactoryBean.setBus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cxf.jaxws.JaxWsServerFactoryBean
的用法示例。
在下文中一共展示了JaxWsServerFactoryBean.setBus方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
import org.apache.cxf.jaxws.JaxWsServerFactoryBean; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
template = context.createProducerTemplate();
JaxWsServerFactoryBean svrBean = new JaxWsServerFactoryBean();
svrBean.setAddress(getServerAddress());
svrBean.setServiceClass(Greeter.class);
svrBean.setServiceBean(new GreeterImpl());
SpringBusFactory bf = new SpringBusFactory();
URL cxfConfig = null;
if (getCxfServerConfig() != null) {
cxfConfig = ClassLoaderUtils.getResource(getCxfServerConfig(), this.getClass());
}
svrBean.setBus(bf.createBus(cxfConfig));
serviceEndpoint = svrBean.create();
}
示例2: createOcppService
import org.apache.cxf.jaxws.JaxWsServerFactoryBean; //导入方法依赖的package包/类
private void createOcppService(Object serviceBean, String address,
List<Interceptor<? extends Message>> interceptors) {
JaxWsServerFactoryBean f = new JaxWsServerFactoryBean();
f.setBus(springBus());
f.setServiceBean(serviceBean);
f.setAddress(address);
f.getInInterceptors().addAll(interceptors);
f.create();
}
示例3: setUpBeforeClass
import org.apache.cxf.jaxws.JaxWsServerFactoryBean; //导入方法依赖的package包/类
@BeforeClass
public static void setUpBeforeClass() throws Exception
{
bus = BusFactory.newInstance().createBus();
BusFactory.setDefaultBus(bus);
JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
factory.setBus(bus);
factory.setAddress("udp://:" + PORT);
factory.setServiceBean(new GreeterImpl());
server = factory.create();
}
示例4: createJaxWsServer
import org.apache.cxf.jaxws.JaxWsServerFactoryBean; //导入方法依赖的package包/类
protected JaxWsServerFactoryBean createJaxWsServer() {
JaxWsServerFactoryBean serverFactoryBean = new JaxWsServerFactoryBean();
serverFactoryBean.setServiceClass(HelloWorldTestServiceImpl.class);
serverFactoryBean.setAddress(endpointAddress);
serverFactoryBean.setServiceBean(new HelloWorldTestServiceImpl(serverBackend));
serverFactoryBean.setBus(CXFBusFactory.getDefaultBus());
return serverFactoryBean;
}