Search in sources :

Example 1 with HelloWorldImpl

use of demo.service.impl.HelloWorldImpl in project cxf by apache.

the class ServerJMS method launchCxfApi.

private static void launchCxfApi() {
    Object implementor = new HelloWorldImpl();
    JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
    svrFactory.setServiceClass(HelloWorld.class);
    svrFactory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICATION_TRANSPORTID);
    svrFactory.setAddress(JMS_ENDPOINT_URI);
    svrFactory.setServiceBean(implementor);
    svrFactory.setFeatures(Collections.singletonList(new LoggingFeature()));
    svrFactory.create();
}
Also used : HelloWorldImpl(demo.service.impl.HelloWorldImpl) LoggingFeature(org.apache.cxf.ext.logging.LoggingFeature) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean)

Aggregations

HelloWorldImpl (demo.service.impl.HelloWorldImpl)1 LoggingFeature (org.apache.cxf.ext.logging.LoggingFeature)1 JaxWsServerFactoryBean (org.apache.cxf.jaxws.JaxWsServerFactoryBean)1