session - How to change broadcasted ip in tomcat cluster -


i set tomcat 7 cluster including -part in server.xml. in docs ( http://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html ) says:

the ip broadcasted java.net.inetaddress.getlocalhost().gethostaddress() (make sure don't broadcast 127.0.0.1, common error)

unfortunately getlocalhost().gethostaddress() return 127.0.1.1 virtual machines (ubuntu run in virtual box under win7) instead of correct ip can reach vm's with, ie 10.42.29.191.

question:

is there way tell tomcat ip send other members of cluster via multicast? or can specify (e.g. code) different way obtain ip?

additional info:

my cluster seems fail session replication , above "error" cause of it. glassfish doesn't session replication either, maybe it's same error. if give information glassfish configuration regarding i'd glad too. multicast between virtual machines works according tool iperf.

since vm ubuntu machine, had edit file /etc/hosts.

replace entry this:

127.0.1.1   tim-virtualbox 

with correct ip:

10.42.29.191    tim-virtualbox 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -