-
1. Re: External JNDI access to JBoss 3.0.0
schaefera Jul 21, 2002 1:31 PM (in response to dweil)This seems to be a network problem. Does jndi.properties point to the right server, can this server be accessed (firewall etc.), can you ping and tracert it ?
I doesn't make any sense with respect to different server configurations because the relevant parts are the same (except you changed them).
Also check that you set RmiPort when behind a firewall (and punch a whole in the firewall as well) and set the BindAddress if you have a multi-homed server.
Andy -
2. Re: External JNDI access to JBoss 3.0.0
ronster Jul 21, 2002 7:36 PM (in response to dweil)you may need something like this (at the start of your application)
System.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.provider.url",
"jnp://localhost:1099");
System.setProperty("java.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces"); -
3. Re: External JNDI access to JBoss 3.0.0
dweil Jul 22, 2002 6:51 PM (in response to dweil)The java.naming.provider.url parameter was commented out in jndi.properties. After setting it to jnp://localhost:1099 my app runs with both configurations, 'all' and 'default'.
Thanks so far, but allow 2 more questions:
- what is the default for java.naming.provider.url ?
- why does a JNDI connect/lookup succeed without this parameter with config 'all', but fail with 'all' ?
Dirk