Class JNDIContextFactory

java.lang.Object
org.apache.ofbiz.base.util.JNDIContextFactory

public class JNDIContextFactory extends Object
JNDIContextFactory - central source for JNDI Contexts by helper name
  • Constructor Details

    • JNDIContextFactory

      public JNDIContextFactory()
  • Method Details

    • getInitialContext

      public static InitialContext getInitialContext(String jndiServerName) throws GenericConfigException
      Return the initial context according to the entityengine.xml parameters that correspond to the given prefix
      Returns:
      the JNDI initial context
      Throws:
      GenericConfigException
    • clearInitialContext

      public static void clearInitialContext(String jndiServerName)
      Removes an entry from the JNDI cache.
      Parameters:
      jndiServerName -