This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
Can Anyone Explain about InitialContext? How it helps in looking up the JNDI name present in the remote System?
posted 12 years ago
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.