ContextFactory

Description

This component provides a registry of JNDI naming and directory context.

The purpose of this compponent is gathering the settings for various JNDI contexts accessed throughout the application in a single place. You can define a number of contexts in the configuration of the component, and associate a set of textual properties with each of them. These properties will be placed in the environment hashtable passed to the InitialContext / InitialDirContext object used to access the context.

Created initial contexts / dirContexts object are cached by the component and the thread-safe views of these contexts returned by the get methods are created with initial.lookup("") technique.

Browse

Dependencies

required components LoggerFactory, ConfigurationFactory
required libraries none.

Constructor parameters

position type descritpion
1 org.jcontainer.dna.Configuration the configuration
2 import org.jcontainer.dna.Logger the logger