This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Initial Context  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 919
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you find the 'JNDIConfiguration' class?
Does it by any chance wrap the second example you cite?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!