Package org.ofbiz.core.util
Class JNDIContextFactory
java.lang.Object
org.ofbiz.core.util.JNDIContextFactory
JNDIContextFactory - central source for JNDI Contexts by helper name
- Since:
- 2.0
- Version:
- $Revision: 1.1 $
- Author:
- David E. Jones, Andy Zeneski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearInitialContext(String jndiServerName) Removes an entry from the JNDI cache.static InitialContextgetInitialContext(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- The name of the JNDI server
-