当前位置: 首页>>代码示例>>Java>>正文


Java JaxWsServerFactoryBean.setBus方法代码示例

本文整理汇总了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();

}
 
开发者ID:HydAu,项目名称:Camel,代码行数:19,代码来源:WSAddressingTest.java

示例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();
}
 
开发者ID:RWTH-i5-IDSG,项目名称:steve-plugsurfing,代码行数:10,代码来源:OcppConfiguration.java

示例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();
}
 
开发者ID:jbossws,项目名称:jbossws-cxf,代码行数:12,代码来源:UDPTransportTest.java

示例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;
}
 
开发者ID:tracee,项目名称:tracee,代码行数:9,代码来源:AbstractConnectionITHelper.java


注:本文中的org.apache.cxf.jaxws.JaxWsServerFactoryBean.setBus方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。