Class JNDIConfig


  • public class JNDIConfig
    extends AbstractConfig
    The JNDI config hold information about JNDI connection details. It supports the following properties and init parameters:
     +-------------------+--------------------+
     | Property Name     | Init-Param Name    |
     +-------------------+--------------------+
     | jndi.enable       | {provider spec.}   |
     | java.naming.*     | java.naming.*      |
     +-------------------+--------------------+
     
    • Method Detail

      • getJndiName

        public java.lang.String getJndiName()
      • setJndiName

        public void setJndiName​(java.lang.String jndiName)
      • enabled

        public boolean enabled()
      • getJndiEnabled

        public java.lang.String getJndiEnabled()
      • setJndiEnabled

        public void setJndiEnabled​(java.lang.String jndiEnabled)
      • getJndiEnv

        public java.util.Properties getJndiEnv()
      • init

        public void init​(java.util.Properties props)
                  throws javax.servlet.ServletException
        Description copied from class: AbstractConfig
        Initializes the configuration with values from the given properties
        Overrides:
        init in class AbstractConfig
        Parameters:
        props - the configuration properties
        Throws:
        javax.servlet.ServletException
      • init

        public void init​(javax.servlet.ServletConfig ctx)
                  throws javax.servlet.ServletException
        Overrides:
        init in class AbstractConfig
        Throws:
        javax.servlet.ServletException