This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes InitialContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "InitialContext" Watch "InitialContext" New topic


Vaithialingam Asai

Joined: Mar 07, 2004
Posts: 10
Can Anyone Explain about InitialContext? How it helps in looking up the JNDI name present in the remote System?
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
InitialContexts are usually provided by containers that your code is executing within. To connect to JNDI directories that are located elsewhere, you usually need to do so in a vendor-specific way. You'll have to consult some extra documentation to figure out what else is needed. The JNDI tutorial will probably help you sift out most of these issues.

It is sorta covered in the JavaRanch Style Guide.
subject: InitialContext
Similar Threads
problem with DB2 connection in a stateful session bean and deployed by Websphere
classcast exception while using JMS with Jboss
accessing EJB from java client Error!
read .properties file in jsp
what's the use of InitialContext?