@Test
public void testOneWayQueueConnection() throws Exception {
QName serviceName = new QName("http://cxf.apache.org/hello_world_jms", "HelloWorldOneWayQueueService");
QName portName = new QName("http://cxf.apache.org/hello_world_jms", "HelloWorldOneWayQueuePort");
URL wsdl = getWSDLURL("/wsdl/jms_test.wsdl");
HelloWorldOneWayQueueService service = new HelloWorldOneWayQueueService(wsdl, serviceName);
try {
HelloWorldOneWayPort greeter = service.getPort(portName, HelloWorldOneWayPort.class,
new AddressingFeature(true, true));
for (int idx = 0; idx < 5; idx++) {
greeter.greetMeOneWay("JMS:Queue:Milestone-" + idx);
}
//Give some time to complete one-way calls.