My linux servers' /etc/hosts files have the loopback address associated with
the hostname, so when the CallbackServerFactory gets the IP to report to the
JMS server, it passes the loopback address. Obviously, this is a short-term
problem, as http://jira.jboss.org/jira/browse/JBMESSAGING-92 will (fingers
crossed) soon be available. However, for now, this is a problem.
I suggest the following workaround:
1. Allow a system property override (similar to the java.rmi.server.hostName
property). In my solution I used java.rmi.override.host
2. Change org.jboss.jms.client.remoting.CallbackServerFactory to support, like
below:
--- CallbackServerFactory.javaOLD 2006-08-29 08:30:03.599602300 -0700
| +++ CallbackServerFactory.java 2006-08-29 08:23:52.975018900 -0700
| @@ -126,5 +126,13 @@
| int count = 0;
|
| - String thisAddress = InetAddress.getLocalHost().getHostAddress();
| + // BEGIN HACK
| + String thisAddress = System.getProperty("java.rmi.override.host");
| + if (thisAddress == null)
| + {
| + thisAddress = InetAddress.getLocalHost().getHostAddress();
| + }
| + // END HACK
| +
| +
| boolean isSSL = serverLocator.getProtocol().equals("sslsocket");
| Map params = serverLocator.getParameters();
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968122#3968122
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968122
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user