Package org.apache.ofbiz.base.util
Class JNDIContextFactory
- java.lang.Object
-
- org.apache.ofbiz.base.util.JNDIContextFactory
-
public class JNDIContextFactory extends java.lang.Object
JNDIContextFactory - central source for JNDI Contexts by helper name
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description JNDIContextFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
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
-
-
-