1 package demo.ws_addressing.server; 2 3 import javax.xml.ws.Endpoint; 4 5 public class Server { 6 7 protected Server() throws Exception { 8 System.out.println("Starting Server"); 9 10 11 Object implementor = new GreeterImpl(); 12 String address = "http://localhost:9000/SoapContext/SoapPort"; 13 Endpoint.publish(address, implementor); 14 } 15 16 public static void main(String args[]) throws Exception { 17 new Server(); 18 System.out.println("Server ready..."); 19 20 Thread.sleep(5 * 60 * 1000); 21 System.out.println("Server exiting"); 22 System.exit(0); 23 } 24 } 25 | Popular Tags |