portName = new QName("http://celtix.objectweb.org/hello_world_jms",
"HelloWorldPubSubPort");
URL wsdl = getClass().getResource("/wsdl/jms_test.wsdl");
assertNotNull(wsdl);
HelloWorldPubSubService service = new HelloWorldPubSubService(wsdl, serviceName);
assertNotNull(service);
try {
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(100L);