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.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); env.put(Context.PROVIDER_URL, "t3://localhost:7001"); try{ InitialContext ic = new InitialContext(env); }..... ********************************************************
George Brown
Ranch Hand
Joined: Sep 26, 2000
Posts: 919
posted
0
Where did you find the 'JNDIConfiguration' class? Does it by any chance wrap the second example you cite?