KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > axisinterop > CeltixServer


1 package org.objectweb.celtix.axisinterop;
2
3 import javax.xml.ws.Endpoint;
4
5 import org.objectweb.celtix.bus.jaxws.spi.ProviderImpl;
6 import org.objectweb.celtix.testutil.common.AbstractTestServerBase;
7
8 public class CeltixServer extends AbstractTestServerBase {
9     
10     static {
11         System.setProperty(ProviderImpl.JAXWSPROVIDER_PROPERTY, ProviderImpl.JAXWS_PROVIDER);
12     }
13
14     protected void run() {
15         Object JavaDoc implementor = new CeltixEchoImpl();
16         String JavaDoc address = "http://localhost:9240/CeltixEchoService/Echo";
17         Endpoint.publish(address, implementor);
18     }
19     
20     public static void main(String JavaDoc[] args) {
21         try {
22             CeltixServer s = new CeltixServer();
23             s.start();
24         } catch (Exception JavaDoc ex) {
25             ex.printStackTrace();
26             System.exit(-1);
27         } finally {
28             System.out.println("done!");
29         }
30     }
31 }
32
Popular Tags