Class JNDIConfiguration

All Implemented Interfaces:
Configuration

This Configuration class allows you to interface with a JNDI datasource. A JNDIConfiguration is read-only, write operations will throw an UnsupportedOperationException. The clear operations are supported but the underlying JNDI data source is not changed.
Version:
$Id: JNDIConfiguration.java 1234985 2012-01-23 21:09:09Z oheger $
Author:
Eric Pugh
  • Constructor Details

    • JNDIConfiguration

      Creates a JNDIConfiguration using the default initial context as the root of the properties.
      Throws:
      NamingException - thrown if an error occurs when initializing the default context
    • JNDIConfiguration

      public JNDIConfiguration(String prefix) throws NamingException
      Creates a JNDIConfiguration using the default initial context, shifted with the specified prefix, as the root of the properties.
      Parameters:
      prefix - the prefix
      Throws:
      NamingException - thrown if an error occurs when initializing the default context
    • JNDIConfiguration

      public JNDIConfiguration(Context context)
      Creates a JNDIConfiguration using the specified initial context as the root of the properties.
      Parameters:
      context - the initial context
    • JNDIConfiguration

      public JNDIConfiguration(Context context, String prefix)
      Creates a JNDIConfiguration using the specified initial context shifted by the specified prefix as the root of the properties.
      Parameters:
      context - the initial context
      prefix - the prefix
  • Method Details