OK, added the code java.bind.address to the JNDI properties and now we
get the IP proper IP address back but still connection refused. Again,
this is only when using the --host switch and the same thing works fine
when multihoming my home PC. 

javax.naming.CommunicationException [Root exception is
java.rmi.ConnectException: Connection refused to host: 1.2.11.21; nested
exception is:

This is driving me wacko. We have to support multihome and it was
working like a charm. Will continue testing but any ideas appreciated. 

TIA,

Rod


-----Original Message-----
From: Scott M Stark [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 26, 2003 9:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Multihome JBoss Issue


System.getProperty("jboss.bind.address") == --host value

-- 
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

Rod Macpherson wrote:
> I use this to get the JNDI properties and bind Globals.HOST in a 
> static
> class initializer using 
> java.net.InetAddress.getLocalHost().getHostName(). The problem is that

> method returns the hostname of my box NOT the hostname that JBoss was 
> started with using the --host switch. Given the static method call and

> the fact that the JVM is not running on the bound --host, it's not 
> surprising that Globals.HOST is not what I want but how then do we get

> the --host value?
>  
> public static Properties getJNDIProperties()
> {
>     Properties properties = new Properties();
>  
>     if(Globals.JBOSS == Boolean.TRUE)  {
>         properties.put("java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
>         properties.put("java.naming.provider.url", Globals.HOST +
":1099");
>         properties.put("java.naming.factory.url.pkgs",
"org.jboss.naming");
>     }
>  
>   



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does
SourceForge.net help you be more productive?  Does it help you create
better code?  SHARE THE LOVE, and help us help YOU!  Click Here:
http://sourceforge.net/donate/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to