Runtime.getRuntime().addShutdownHook(
new Thread(new GreeterServerMain().new TerminationHandler(bus, true)));
Object implementor = new AnnotatedGreeterImpl();
String address = "http://loalhost:8080/hello_world_soap_http";
Endpoint.publish(address, implementor);
bus.run();
}
private class TerminationHandler implements Runnable {
private final Bus bus;
private final boolean processRemainingTasks;