Java Code Examples for org.apache.cxf.jaxws.EndpointImpl#setBus()
The following examples show how to use
org.apache.cxf.jaxws.EndpointImpl#setBus() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MultiTransportClientServerTest.java From cxf with Apache License 2.0 | 5 votes |
@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(); }
Example 2
Source File: ProviderJMSContinuationTest.java From cxf with Apache License 2.0 | 5 votes |
@BeforeClass public static void startServers() throws Exception { startBusAndJMS(ProviderJMSContinuationTest.class); Object implementor = new HWSoapMessageDocProvider(); String address = "jms:queue:test.jmstransport.text?replyToQueueName=test.jmstransport.text.reply"; EndpointImpl ep = (EndpointImpl)Endpoint.create(implementor); ep.getInInterceptors().add(new IncomingMessageCounterInterceptor()); ep.setBus(bus); ep.getFeatures().add(cff); ep.publish(address); }
Example 3
Source File: SoapJmsSpecTest.java From cxf with Apache License 2.0 | 5 votes |
@BeforeClass public static void startServers() throws Exception { startBusAndJMS(SoapJmsSpecTest.class); publish("jms:queue:test.cxf.jmstransport.queue2", new GreeterSpecImpl()); publish("jms:queue:test.cxf.jmstransport.queue5", new GreeterSpecWithPortError()); EndpointImpl ep = (EndpointImpl)Endpoint.create(null, new GreeterSpecImpl()); ep.setBus(bus); ep.getFeatures().add(new GZIPFeature()); ep.getFeatures().add(cff); ep.publish("jms:queue:test.cxf.jmstransport.queue6"); }
Example 4
Source File: AbstractVmJMSTest.java From cxf with Apache License 2.0 | 4 votes |
public static void publish(String address, Object impl) { EndpointImpl ep = (EndpointImpl)Endpoint.create(impl); ep.setBus(bus); ep.getFeatures().add(cff); ep.publish(address); }