Hi,

I've got a problem with using the jndi.properties file. It seems that
its entries are ignored by my java client. The client looks like:

this.ctx = new InitialContext();
pw = (Patient) ctx.lookup(Patient.class.getName());
pers = (Person) ctx.lookup(Person.class.getName());

Everything works fine if client and server are on the same machine. when
I change the "java.naming.provider.url=jnp://localhost:1099" entry in
the jndi.properties file into e.g. "jnp://notexistingname:1099" the
client also connects to the JBOSS AS on localhost. I tried the url with
and without the "jnp://" protocol prefix.

The full jndi.properties file contains:

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://notexistingname:1099

When I remove the file I get a NoInitialContextException, so the client
seems to read the file but ignores its entries. Maybe it is somehow
wrong (although I copied it from the EJB3 tutorial)?

Can anyone help me?

Thanks,
Nils




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to