KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > demo > callback > server > Server


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