You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/10/27 22:18:30 UTC

svn commit: r589206 - /incubator/tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceBindingProvider.java

Author: jsdelfino
Date: Sat Oct 27 13:18:29 2007
New Revision: 589206

URL: http://svn.apache.org/viewvc?rev=589206&view=rev
Log:
Use port configured on the servlet host instead of hardcoding 8080 as it prevents two nodes from running on the same machine.

Modified:
    incubator/tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceBindingProvider.java

Modified: incubator/tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceBindingProvider.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceBindingProvider.java?rev=589206&r1=589205&r2=589206&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceBindingProvider.java (original)
+++ incubator/tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceBindingProvider.java Sat Oct 27 13:18:29 2007
@@ -115,7 +115,7 @@
         URI uri = URI.create(binding.getURI());
         port = uri.getPort();
         if (port == -1) {
-            port = 8080;
+            port = servletHost.getDefaultPort();
         }
         
         // get the ScaDomainScriptServlet, if it doesn't yet exist create one
@@ -143,7 +143,7 @@
         URI uri = URI.create(binding.getURI());
         port = uri.getPort();
         if (port == -1) {
-            port = 8080;
+            port = servletHost.getDefaultPort();
         }
 
         // Unregister the service from the scaDomain script servlet



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org