Hi All,
I Have the following code
Properties properties = new Properties();
properties.put("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
properties.put("java.naming.factory.host", "IPAddress of MY computer");
properties.put("java.naming.factory.port", 16400);
jndiContext = new InitialContext(properties);
queueConnectionFactory = (QueueConnectionFactory)
jndiContext.lookup("QueueConnectionFactory");
queue = (Queue) jndiContext.lookup(queueName);
I tried to give it some wrong IPAddress for "java.naming.factory.host" but
it worked fine then also. And connected to the JBOSS running on my system.
I want to know how is it working when the IPAddress is wrong.
Thanks in Advance
Sandy - 09 Feb 2006 04:22 GMT
> Hi All,
>
[quoted text clipped - 19 lines]
>
> Thanks in Advance
Actually MY problem is ,
How do i specify the IPAddress/HostName of the system where JBOSS (JMS) is
running.
Heiko W. Rupp - 12 Feb 2006 09:57 GMT
>> properties.put("java.naming.factory.host", "IPAddress of MY computer");
>> properties.put("java.naming.factory.port", 16400);
> Actually MY problem is ,
> How do i specify the IPAddress/HostName of the system where JBOSS (JMS) is
> running.
Use the java.naming.provider.url:
p.put("java.naming.provider.url","jnp://localhost:1099");

Signature
Heiko W. Rupp <hwr@pilhuhn.de> - http://www.pilhuhn.de/hwr/
Begleitseite zum JBoss-Buch: http://bsd.de/jbb/