Hi Giovanni, Instead of hacking around a configuration problem (and it would probably need to be fixed in other places, too), fix your system configuration. In my experience InetAddress.getLocalHost() has operated very reliably. You probably have an entry in /etc/hosts for 127.0.0.1 that contains the canonical hostname for your machine (some Linux distributions default to this, IIRC). Put the canonical hostname as the first entry for one of your system's ethernet interfaces--you probably want it to match what you have in DNS.
If this isn't clear, post your /etc/hosts, /etc/resolv.conf, and the output of "hostname", and I'll make a specific suggestion. - djg On Fri, 17 Jul 2009 06:41 +0100, "Giovanni Miano" <giomi...@gmail.com> wrote: > Guys, > Not too sure it is the right list, however I am finding an issue with > XmlRpcNotifier. The event host parameter sometime (quite often) is > 127.0.0.1 > and not the host suppose to get from /etc/hosts. > I do know that getLocalHost() is quite unstable therefore how do I force > to > use a specific hostname without patching the code ? any cofing ? > > XmlRpcNotifier has verifyServer bool and localServer String but I could > not > find where it is fetching that. > > Thanks > > -- > Giovanni Miano ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-devel mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-devel