summaryrefslogtreecommitdiffstats
path: root/src/main/java/derms/replica1/DERMSServerPublisher.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/derms/replica1/DERMSServerPublisher.java')
-rw-r--r--src/main/java/derms/replica1/DERMSServerPublisher.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/derms/replica1/DERMSServerPublisher.java b/src/main/java/derms/replica1/DERMSServerPublisher.java
new file mode 100644
index 0000000..df175b6
--- /dev/null
+++ b/src/main/java/derms/replica1/DERMSServerPublisher.java
@@ -0,0 +1,16 @@
+package derms.replica1;
+
+import javax.xml.ws.Endpoint;
+
+public class DERMSServerPublisher {
+ public static void main(String[] args) {
+ try {
+ Endpoint.publish("http://localhost:8387/ws/derms", new DERMSServer("MTL"));
+// Endpoint.publish("http://localhost:8081/ws/derms", new DERMSServer("QUE"));
+// Endpoint.publish("http://localhost:8082/ws/derms", new DERMSServer("SHE"));
+ } catch (InterruptedException e) {
+ throw new RuntimeException(e);
+ }
+ System.out.println("DERMS Web Service is published at http://localhost:8387/ws/derms");
+ }
+} \ No newline at end of file