tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jorge Medina" <jmed...@e-dialog.com>
Subject RE: Clustering: Session replication
Date Tue, 10 Feb 2009 22:09:32 GMT
I am using a  virtual environment. My machine did not have an entry for
its IP address in /etc/hosts
I added the IP address with the name returned by the shell command
`hostname`
I think this probably would be resolved via DNS in a regular
envionment...but for now I am set.

Thanks

-Jorge

-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Tuesday, February 10, 2009 4:34 PM
To: Tomcat Users List
Subject: RE: Clustering: Session replication

> From: Jorge Medina [mailto:jmedina@e-dialog.com]
> Subject: FW: Clustering: Session replication
>
> According to the Javadoc, InetAddress.getLocalHost() returns the 
> loopback address.

No, it doesn't; the sentence in question reads:

"If the operation is not allowed, an InetAddress representing the
loopback address is returned."

You seem to have ignored the first clause in the sentence.

InetAddress.getLocalHost().getHostAddress() gets me an external IP
address on every system I can find.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message