File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Initial Context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Initial Context" Watch "Initial Context" New topic

Initial Context

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I am using weblogic 5.1
There are several ways to get the initial context. Can anyone tell the difference between the following two?
InitialContext ic = JNDIConfiguration.getInitialContext();
Hashtable env = new Hashtable();
env.put(Context.PROVIDER_URL, "t3://localhost:7001");
InitialContext ic = new InitialContext(env);
George Brown
Ranch Hand

Joined: Sep 26, 2000
Posts: 919
Where did you find the 'JNDIConfiguration' class?
Does it by any chance wrap the second example you cite?
subject: Initial Context
It's not a secret anymore!