1 package demo.hwRPCLit.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 Object implementor = new GreeterRPCLitImpl(); 10 String address = "http://localhost:9000/SoapContext/SoapPort"; 11 Endpoint.publish(address, implementor); 12 } 13 14 public static void main(String args[]) throws Exception { 15 new Server(); 16 System.out.println("Server ready..."); 17 18 Thread.sleep(5 * 60 * 1000); 19 System.out.println("Server exiting"); 20 System.exit(0); 21 } 22 } 23 | Popular Tags |