[Jboss-cvs] JBoss Messaging SVN: r1263 - 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 23:52:36 EDT 2006
Author: clebert.suconic at jboss.com
Date: 2006-09-05 23:52:35 -0400 (Tue, 05 Sep 2006)
New Revision: 1263
Modified:
trunk/src/main/org/jboss/jms/client/remoting/CallbackServerFactory.java
Log:
JBMESSAGING-536 - proper fix using system property
Modified: trunk/src/main/org/jboss/jms/client/remoting/CallbackServerFactory.java
===================================================================
--- trunk/src/main/org/jboss/jms/client/remoting/CallbackServerFactory.java 2006-09-06 03:50:55 UTC (rev 1262)
+++ trunk/src/main/org/jboss/jms/client/remoting/CallbackServerFactory.java 2006-09-06 03:52:35 UTC (rev 1263)
@@ -60,6 +60,8 @@
public static final String JMS_CALLBACK_SUBSYSTEM = "CALLBACK";
+ public static final String CLIENT_HOST = System.getProperty("jboss.messaging.callback.bind.address");
+
public static CallbackServerFactory instance = new CallbackServerFactory();
private Map holders;
@@ -125,7 +127,13 @@
String serializationType = null;
int count = 0;
- String thisAddress = serverLocator.getHost();
+ String thisAddress = CLIENT_HOST;
+
+ if (thisAddress==null)
+ {
+ thisAddress = InetAddress.getLocalHost().getHostAddress();
+ }
+
boolean isSSL = serverLocator.getProtocol().equals("sslsocket");
Map params = serverLocator.getParameters();
More information about the jboss-cvs-commits
mailing list