org.ofbiz.base.util
Class JNDIContextFactory

java.lang.Object
  extended by org.ofbiz.base.util.JNDIContextFactory

public class JNDIContextFactory
extends java.lang.Object

JNDIContextFactory - central source for JNDI Contexts by helper name


Field Summary
static java.lang.String module
           
 
Constructor Summary
JNDIContextFactory()
           
 
Method Summary
static void clearInitialContext(java.lang.String jndiServerName)
          Removes an entry from the JNDI cache.
static javax.naming.InitialContext getInitialContext(java.lang.String jndiServerName)
          Return the initial context according to the entityengine.xml parameters that correspond to the given prefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module
Constructor Detail

JNDIContextFactory

public JNDIContextFactory()
Method Detail

getInitialContext

public static javax.naming.InitialContext getInitialContext(java.lang.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(java.lang.String jndiServerName)
Removes an entry from the JNDI cache.

Parameters:
jndiServerName -