O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Context

JNDI works with one or more contexts. A context is effectively a namespace, and within a namespace are resources that are identified by a key. A resource is an object that is stored or bound into the namespace using a key and can be retrieved by the key. Namespaces can optionally form a hierarchy much like a directory hierarchy, so that a series of entries relating to computer servers could be organized as follows.

/regional
        /corporate_it
        /corporate_backup
/national
        /north
                /local
                        /departmental
                               /accounting
                               /finance
                               /human_resources
        /south
                /local
                        /departmental
                               /accounting
                               /finance
                               /human_resources

Using this example, a fully qualified path name for a server in the national north region expressed using a forward slash to separate the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required