KickJava   Java API By Example, From Geeks To Geeks.

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


1 package demo.streams.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
10
11         Object JavaDoc implementor = new GreeterImpl();
12         String JavaDoc address = "http://localhost:9000/helloworld/SoapPort";
13         Endpoint.publish(address, implementor);
14     }
15     
16     public static void main(String JavaDoc args[]) throws Exception JavaDoc {
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