summaryrefslogtreecommitdiffstats
path: root/src/main/java/derms/replica1/DERMSServerPublisher.java
diff options
context:
space:
mode:
authorShazaAli <shazamamdouh@aucegypt.edu>2024-12-02 21:47:50 -0500
committerShazaAli <shazamamdouh@aucegypt.edu>2024-12-02 22:15:51 -0500
commitbf496d8917b5427508b842823f67a1bef5621938 (patch)
tree030e1833badc6cdd5c393b09275bf583335a6c4b /src/main/java/derms/replica1/DERMSServerPublisher.java
parent674de6113031aec7fe16d75f86e48907581a0f62 (diff)
downloadsoen423-bf496d8917b5427508b842823f67a1bef5621938.zip
replica 1 and parallel FE
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