[Jboss-cvs] JBoss Messaging SVN: r1257 - trunk/src/main/org/jboss/jms/client/remoting
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Sep 5 15:15:50 EDT 2006
Author: clebert.suconic at jboss.com
Date: 2006-09-05 15:15:49 -0400 (Tue, 05 Sep 2006)
New Revision: 1257
Modified:
trunk/src/main/org/jboss/jms/client/remoting/CallbackServerFactory.java
Log:
JBMESSAGING-536 - fix
Modified: trunk/src/main/org/jboss/jms/client/remoting/CallbackServerFactory.java
===================================================================
--- trunk/src/main/org/jboss/jms/client/remoting/CallbackServerFactory.java 2006-09-05 19:05:32 UTC (rev 1256)
+++ trunk/src/main/org/jboss/jms/client/remoting/CallbackServerFactory.java 2006-09-05 19:15:49 UTC (rev 1257)
@@ -125,7 +125,7 @@
String serializationType = null;
int count = 0;
- String thisAddress = InetAddress.getLocalHost().getHostAddress();
+ String thisAddress = serverLocator.getHost();
boolean isSSL = serverLocator.getProtocol().equals("sslsocket");
Map params = serverLocator.getParameters();
@@ -138,7 +138,7 @@
{
try
{
- int bindPort = PortUtil.findFreePort("localhost");
+ int bindPort = PortUtil.findFreePort(thisAddress);
String callbackServerURI;
More information about the jboss-cvs-commits
mailing list