[jboss-dev] ServerInfo.getHostName()/getHostAddress() can show confusing information
Galder Zamarreno
galder.zamarreno at redhat.com
Wed Jan 7 05:04:47 EST 2009
Hi,
I'm wondering whether the current implementation of
ServerInfo.getHostName() and ServerInfo.getHostAddress() are of any real
use, specially when the value passed via -b is different to
InetAddress.getLocalHost() which leads to confusion: You bind to X but
ServerInfo shows host name or host address being Y.
Besides, there's no easy way of checking what's the IP to which the
server is bound other than browsing through the system properties.
So, I'd suggest changing getHostName/getHostAddress to be based on
jboss.bind.address system property and this is not set fall back on
InetAddress.getLocalHost().
Thoughts?
Cheers,
--
Galder Zamarreño
Sr. Software Maintenance Engineer
JBoss, a division of Red Hat
More information about the jboss-development
mailing list