KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > systest > dispatch > Server


1 package org.objectweb.celtix.systest.dispatch;
2
3 import javax.xml.ws.Endpoint;
4
5 import org.objectweb.celtix.systest.common.TestServerBase;
6
7 public class Server extends TestServerBase {
8     
9     
10     protected void run() {
11         Object JavaDoc implementor = new GreeterImpl();
12         String JavaDoc address = "http://localhost:9000/SoapContext/SoapPort";
13         Endpoint.publish(address, implementor);
14     }
15     
16
17     public static void main(String JavaDoc[] args) {
18         try {
19             Server s = new Server();
20             s.start();
21             //s.run();
22
} catch (Exception JavaDoc ex) {
23             ex.printStackTrace();
24             System.exit(-1);
25         } finally {
26             System.out.println("done!");
27         }
28     }
29 }
30
Popular Tags