01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */package org.apache.cxf.systest.jms;
19:
20: import javax.xml.ws.Endpoint;
21:
22: import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
23:
24: public class Server extends AbstractBusTestServerBase {
25:
26: protected void run() {
27: Object implementor = new GreeterImplTwoWayJMS();
28: Object impl2 = new GreeterImplQueueOneWay();
29: Object impl3 = new GreeterImplTopicOneWay();
30: Object impleDoc = new GreeterImplDoc();
31: Endpoint.publish(null, impleDoc);
32: String address = "http://localhost:9000/SoapContext/SoapPort";
33: Endpoint.publish(address, implementor);
34: Endpoint.publish("http://testaddr.not.required/", impl2);
35: Endpoint.publish("http://testaddr.not.required.topic/", impl3);
36: }
37:
38: public static void main(String[] args) {
39: try {
40: Server s = new Server();
41: s.start();
42: } catch (Exception ex) {
43: ex.printStackTrace();
44: System.exit(-1);
45: } finally {
46: System.out.println("done!");
47: }
48: }
49: }
|