On 1/20/07, Sanjiv Jivan <[EMAIL PROTECTED]> wrote:
I am using Lingo / ActiveMQ for client server communication an ran into an
issue with multihomed machines. When the client is on a multihomed machine
and sends a request to the sever, the server is not able to communicte back
to the client because the client passed the internal / non public IP when
communicating with the server.

With RMI, I used to set the System property java.rmi.server.hostname to the
public IP of the multihomed machine and when this is set, Java RMI uses this
value instead of the one returned by java.net.InetAddress (see
http://java.sun.com/j2se/1.4.2/docs/guide/rmi/javarmiproperties.html).

Is there a similar setting for use with Active MQ? If not, how do you
suggest we resolve this problem.

AFAIK, the -Djava.rmi.server.hostname=<ip-address-of-public-interface>
should work as long as the /etc/hosts file is configured properly (the
caveat to this is the use of DHCP on the primary interface). What are
the entries for the hostnames of these machines in their respective
/etc/hosts files?

Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Reply via email to