jQuery in Action, 2nd edition
The moose likes Java in General and the fly likes configuring service provider for jndi lookup Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "configuring service provider for jndi lookup" Watch "configuring service provider for jndi lookup" New topic
Author

configuring service provider for jndi lookup

Terril Douglas
Greenhorn

Joined: May 05, 2008
Posts: 11
Hello looking at the code snippet here:

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.RefFSContextFactory");
env.put(Context.PROVIDER_URL, "file:/tmp/tutorial");
Context ctx = new InitialContext(env);

I am wondering for the env variables how do you know how to set up the service provider?

env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.RefFSContextFactory");
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: configuring service provider for jndi lookup
 
Similar Threads
Context Factory - Urgent help please
Run JNDI example problem
Context Factory - Urgent help please
How to use JNDI to get a Pooled Connection
Naming Problem