1 package org.objectweb.celtix.systest.jms; 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 10 protected void run() { 11 Object implementor = new GreeterImplTwoWayJMS(); 12 Object impl2 = new GreeterImplQueueOneWay(); 13 Object impl3 = new GreeterImplTopicOneWay(); 14 String address = "http://localhost:9000/SoapContext/SoapPort"; 15 Endpoint.publish(address, implementor); 16 Endpoint.publish("http://testaddr.not.required/", impl2); 17 Endpoint.publish("http://testaddr.not.required.topic/", impl3); 18 } 19 20 21 public static void main(String [] args) { 22 try { 23 Server s = new Server(); 24 s.start(); 25 } catch (Exception ex) { 26 ex.printStackTrace(); 27 System.exit(-1); 28 } finally { 29 System.out.println("done!"); 30 } 31 } 32 } 33 | Popular Tags |