WebSphere interview question

What is JNDI, and how do applications look up resources in WebSphere?

Definition

Members can save this page, take notes and track progress. See membership · Sign in

Summary

JNDI (Java Naming and Directory Interface) is the directory where the server registers resources such as data sources, JMS queues and environment entries under names like jdbc/orders. Applications get them by injection (@Resource(lookup = "jdbc/orders")) or by lookup, ideally through a resource reference (java:comp/env/jdbc/orders) that's bound to the real JNDI name at deployment.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More WebSphere questions

← All WebSphere questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake