JNDI caching

In WAS, Java Naming and Directory Interface (JNDI) context objects use caching to improve the performance of JNDI lookup operations. Objects that have been bound and looked up are cached to speed up subsequent lookups for those objects. Objects are cached as they are bound or initially looked up. JNDI clients should typically be able to use the default cache behavior.

The following sections describe cache behavior and how JNDI clients can override default cache behavior when necessary.

JNDI cache behavior
This topic discusses how caches interact with initial contexts, and how this association affects lookup operations performed for cached objects.

JNDI cache properties
This topic discusses the ways in which you can control cache behavior by setting the properties for a cache.

JNDI coding examples
This topic illustrates how cache properties are set by giving Java code examples that control cache behavior.