Class JNDIContextFactory

java.lang.Object
org.ofbiz.core.util.JNDIContextFactory

public class JNDIContextFactory extends Object
JNDIContextFactory - central source for JNDI Contexts by helper name
Since:
2.0
Version:
$Revision: 1.1 $
Author:
David E. Jones, Andy Zeneski
  • 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 - The name of the JNDI server