verifyProperties(pmf, loadProperties(validPropertiesFile));
context.bind(jndiName, pmf);
}
return JDOHelper.getPersistenceManagerFactory(jndiName, context);
} catch (NamingException e) {
throw new JDOFatalException("Caught NamingException trying to bind " +
e.getMessage(), e);
} finally {
if (context != null) {
try {
context.unbind(jndiName);