Search in sources :

Example 1 with JMSGreeterImpl

use of org.apache.hello_world_doc_lit.JMSGreeterImpl in project cxf by apache.

the class MultiTransportClientServerTest method startServers.

@BeforeClass
public static void startServers() throws Exception {
    bus = BusFactory.getDefaultBus();
    ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
    PooledConnectionFactory cfp = new PooledConnectionFactory(cf);
    cff = new ConnectionFactoryFeature(cfp);
    String address = "http://localhost:" + PORT + "/SOAPDocLitService/SoapPort";
    Endpoint.publish(address, new HTTPGreeterImpl());
    EndpointImpl ep1 = (EndpointImpl) Endpoint.create(new JMSGreeterImpl());
    ep1.setBus(bus);
    ep1.getFeatures().add(cff);
    ep1.publish();
}
Also used : ActiveMQConnectionFactory(org.apache.activemq.ActiveMQConnectionFactory) HTTPGreeterImpl(org.apache.hello_world_doc_lit.HTTPGreeterImpl) ConnectionFactoryFeature(org.apache.cxf.transport.jms.ConnectionFactoryFeature) EndpointImpl(org.apache.cxf.jaxws.EndpointImpl) PooledConnectionFactory(org.apache.activemq.pool.PooledConnectionFactory) JMSGreeterImpl(org.apache.hello_world_doc_lit.JMSGreeterImpl) BeforeClass(org.junit.BeforeClass)

Aggregations

ActiveMQConnectionFactory (org.apache.activemq.ActiveMQConnectionFactory)1 PooledConnectionFactory (org.apache.activemq.pool.PooledConnectionFactory)1 EndpointImpl (org.apache.cxf.jaxws.EndpointImpl)1 ConnectionFactoryFeature (org.apache.cxf.transport.jms.ConnectionFactoryFeature)1 HTTPGreeterImpl (org.apache.hello_world_doc_lit.HTTPGreeterImpl)1 JMSGreeterImpl (org.apache.hello_world_doc_lit.JMSGreeterImpl)1 BeforeClass (org.junit.BeforeClass)1