This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Initial Context

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • 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
  • 0
  • 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?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic