This content has been marked as final.
Show 1 reply
-
1. Re: How can I use the jndi.properties file from a JAR file c
pacsltd May 25, 2002 11:30 AM (in response to tsetsong)I had the same problem.
This worked for me:=
System.setProperty ("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
System.setProperty ("java.naming.provider.url", "localhost:1099");
System.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
jndiContext = new InitialContext(System.getProperties());
p.s. Mine only works if I'm connected to the Internet.
Good luck,
Phil Andrews