Package org.apache.ofbiz.base.util
Class JNDIContextFactory
java.lang.Object
org.apache.ofbiz.base.util.JNDIContextFactory
JNDIContextFactory - central source for JNDI Contexts by helper name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clearInitialContext
(String jndiServerName) Removes an entry from the JNDI cache.static InitialContext
getInitialContext
(String jndiServerName) Return the initial context according to the entityengine.xml parameters that correspond to the given prefix
-
Constructor Details
-
JNDIContextFactory
public JNDIContextFactory()
-
-
Method Details
-
getInitialContext
Return the initial context according to the entityengine.xml parameters that correspond to the given prefix- Returns:
- the JNDI initial context
- Throws:
GenericConfigException
-
clearInitialContext
Removes an entry from the JNDI cache.- Parameters:
jndiServerName
-
-