QName serviceName = new QName("http://cxf.apache.org/hello_world_jms", "JmsDestinationPubSubService");
QName portName = new QName("http://cxf.apache.org/hello_world_jms", "JmsDestinationPubSubPort");
URL wsdl = getWSDLURL("/wsdl/jms_test.wsdl");
HelloWorldPubSubService service = new HelloWorldPubSubService(wsdl, serviceName);
HelloWorldPubSubPort greeter = service.getPort(portName, HelloWorldPubSubPort.class);
for (int idx = 0; idx < 5; idx++) {
greeter.greetMeOneWay("JMS:PubSub:Milestone-" + idx);
}
// Give some time to complete one-way calls.
Thread.sleep(50L);
((java.io.Closeable)greeter).close();
}