KickJava   Java API By Example, From Geeks To Geeks.

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


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