geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Snyder" <bruce.sny...@gmail.com>
Subject Re: hostname vs. IP
Date Thu, 07 Dec 2006 20:52:02 GMT
On 12/7/06, Hernan Cunico <hcunico@gmail.com> wrote:
> Hi All,
> is there a way to force Geronimo to display the hostname when deploying apps?
> it seems to randomly change from one interface to another (I have 2 IPs diff network
on my machine) and from IP to server name. I can't figure out why Geronimo is picking one
over the other, it seems to be random.
>
>   Web Applications:
>     http://192.168.1.10:8080/
>     http://192.168.1.10:8080/console
>     http://192.168.1.10:8080/console-standard
>     http://192.168.1.10:8080/dojo
>     http://192.168.1.10:8080/hello
>     http://192.168.1.10:8080/remote-deploy
>
> Any suggestions?

This is probably because only the method InetAddress.getHost() is
being used instead of InetAddress.getHostName(). But using
getHostName() and having it work correctly requires a reverse lookup
to be performed. But I'm sure it can be changed.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&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/

Mime
View raw message