[JBoss-user] [Installation, Configuration & Deployment] - Re: Creating a JNDI binding from a servlet?

2006-05-11 Thread ljnelson
Thanks, Peter; I know I can get away with that. You can actually get away with quite a bit less: | final InitialContext ic = new InitialContext(new Hashtable() { { this.put(Context.PROVIDER_URL, "localhost"); } }); | ...if everything has been set up for the defaults. It looks like the ans

[JBoss-user] [Installation, Configuration & Deployment] - Re: Creating a JNDI binding from a servlet?

2006-05-11 Thread PeterJ
The following works for me: Hashtable env = new Hashtable(); | env.put(Context.INITIAL_CONTEXT_FACTORY, | "org.jnp.interfaces.NamingContextFactory"); | env.put(Context.PROVIDER_URL, "localhost:1099"); | Context ctx = new InitialContext(env); I do agree with your comment that the s