KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.objectweb.celtix.systest.xml_bare;
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     protected void run() {
10         Object JavaDoc implementor = new GreeterImpl();
11         String JavaDoc address = "http://localhost:9090/XMLService/XMLPort";
12         Endpoint.publish(address, implementor);
13     }
14     
15     public static void main(String JavaDoc[] args) {
16         try {
17             Server s = new Server();
18             s.start();
19         } catch (Exception JavaDoc ex) {
20             ex.printStackTrace();
21             System.exit(-1);
22         } finally {
23             System.out.println("done!");
24         }
25     }
26 }
27
Popular Tags