A critical component of facilitating resource access is a naming service. A naming service provider, such as a Lightweight Directory Access Protocol (LDAP) server allows resources to be registered within a registry, and later discovered and retrieved by a client. The Java Naming and Directory Interface (JNDI) service provides a unified API to access the underlying naming service provider. JNDI provides a naming context as an abstraction of the underlying naming registry.
GlassFish implements a built-in naming environment (known as a naming context). Upon server startup, GlassFish loads all the resource definitions in the configuration file, domain.xml
, and registers their names in the naming context. This context object also provides methods for managing the name bindings.
GlassFish provides a JNDI browsing facility in the Admin Console to quickly browse all the entries registered in the naming service. To use this feature, follow these steps:
Log on to...