getPersistenceManagerFactory(jndiLocation, context) - JDO JDOHelper's static method
Static Method
javax.jdo.JDOHelper
PersistenceManagerFactory getPersistenceManagerFactory(
String jndiLocation,
Context context
)
PersistenceManagerFactory
at the JNDI location specified by
jndiLocation
in the context
context
. If
context
is
null
,
new InitialContext()
will be used. This method is equivalent to invoking
getPersistenceManagerFactory(String,Context,ClassLoader)
with
Thread.currentThread().getContextClassLoader()
as the
loader
argument.
- Parameters:
-
jndiLocation
- the JNDI location containing the PersistenceManagerFactory -
context
- the context in which to find the named PersistenceManagerFactory
- Returns:
- the PersistenceManagerFactory
- Since:
- JDO 2.0