01: package org.objectweb.celtix.systest.jms;
02:
03: import javax.xml.ws.Endpoint;
04:
05: import org.objectweb.celtix.systest.common.TestServerBase;
06:
07: public class Server extends TestServerBase {
08:
09: protected void run() {
10: Object implementor = new GreeterImplTwoWayJMS();
11: Object impl2 = new GreeterImplQueueOneWay();
12: Object impl3 = new GreeterImplTopicOneWay();
13: String address = "http://localhost:9000/SoapContext/SoapPort";
14: Endpoint.publish(address, implementor);
15: Endpoint.publish("http://testaddr.not.required/", impl2);
16: Endpoint.publish("http://testaddr.not.required.topic/", impl3);
17: }
18:
19: public static void main(String[] args) {
20: try {
21: Server s = new Server();
22: s.start();
23: } catch (Exception ex) {
24: ex.printStackTrace();
25: System.exit(-1);
26: } finally {
27: System.out.println("done!");
28: }
29: }
30: }
|