Naming is a lightweight, in-memory JNDI service provider. The initial code base was extracted from the Jakarta Tomcat JNDI implementation.
The Tomcat implementation is designed to support the "java:comp/env"
environment naming context for J2EE web applications. Support for
JNDI resource factories and directory and war contexts are included.
In addition, naming contexts can be bound to threads or classloaders
and access to contexts can be controlled using security tokens.
To provide similar behavior to Tomcat's xml-based configuration of JNDI
resources, an XmlConfigurator
is included with Naming.
To enable flexible deployment with limited dependencies, Naming is divided in 6 packages, each producing a separate jar artifact.
Package | Description | Dependencies |
---|---|---|
Core | Core JNDI context implementation | commons-logging |
Java | javaURLContextFactory implementation |
naming-core |
Factory | JNDI Object factories | naming-core, geronimo-spec-javamail (1.3.1-rc1) |
Resources | File / web resource contexts | naming-core, commons-collections (3.1) |
Management | JMX management interface | naming-core, naming-java, mx4j-jmx (1.1.1) |
Config | XML configuration | naming-core, naming-factory, naming-java, commons-logging (1.0.3), commons-collections (3.1), commons-beanutils (1.6.1), commons-digester (1.4.1), commons-lang (1.0.1), commons-dbcp (1.0), commons-pool (1.0.1), hsqldb (1.7.1, test runtime only) |