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 implementor = new CeltixEchoImpl(); 16 String address = "http://localhost:9240/CeltixEchoService/Echo"; 17 Endpoint.publish(address, implementor); 18 } 19 20 public static void main(String [] args) { 21 try { 22 CeltixServer s = new CeltixServer(); 23 s.start(); 24 } catch (Exception ex) { 25 ex.printStackTrace(); 26 System.exit(-1); 27 } finally { 28 System.out.println("done!"); 29 } 30 } 31 } 32 | Popular Tags |