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