[jbossws-commits] JBossWS SVN: r15805 - container/jboss71/branches/jbossws-jboss710/src/main/java/org/jboss/as/webservices/tests.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Thu Mar 1 10:18:18 EST 2012


Author: alessio.soldano at jboss.com
Date: 2012-03-01 10:18:17 -0500 (Thu, 01 Mar 2012)
New Revision: 15805

Modified:
   container/jboss71/branches/jbossws-jboss710/src/main/java/org/jboss/as/webservices/tests/RemoteDeployer.java
Log:
Synch remote deployer address configuration with upstream


Modified: container/jboss71/branches/jbossws-jboss710/src/main/java/org/jboss/as/webservices/tests/RemoteDeployer.java
===================================================================
--- container/jboss71/branches/jbossws-jboss710/src/main/java/org/jboss/as/webservices/tests/RemoteDeployer.java	2012-03-01 15:17:42 UTC (rev 15804)
+++ container/jboss71/branches/jbossws-jboss710/src/main/java/org/jboss/as/webservices/tests/RemoteDeployer.java	2012-03-01 15:18:17 UTC (rev 15805)
@@ -59,13 +59,23 @@
 
     private static final Logger LOGGER = Logger.getLogger(RemoteDeployer.class);
     private static final int PORT = 9999;
+    private static final String JBWS_DEPLOYER_HOST = "jbossws.deployer.host";
+    private static final String JBWS_DEPLOYER_PORT = "jbossws.deployer.port";
     private final Map<URL, String> url2Id = new HashMap<URL, String>();
     private final InetAddress address = InetAddress.getByName("127.0.0.1");
 
     private ServerDeploymentManager deploymentManager;
 
     public RemoteDeployer() throws IOException {
-        deploymentManager = ServerDeploymentManager.Factory.create(address, PORT);
+        final String host = System.getProperty(JBWS_DEPLOYER_HOST);
+        InetAddress address;
+        if (host != null) {
+            address = InetAddress.getByName(host);
+        } else {
+            address = InetAddress.getByName("localhost");
+        }
+        final Integer port = Integer.getInteger(JBWS_DEPLOYER_PORT, PORT);
+        deploymentManager = ServerDeploymentManager.Factory.create(address, port);
     }
 
     @Override



More information about the jbossws-commits mailing list