Using getHostName was removed back in the 1.1 release, as it only returned the short hostname, which causes problems when using the deployer to machines using DHCP or not in the same sub-domain.....

-Donald


Bruce Snyder wrote:
On 12/7/06, Hernan Cunico <[EMAIL PROTECTED]> 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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to