String msg = Messages.format("jdo.noSuchEngine", engine);
LOG.error(msg);
throw new MappingException(msg);
}
MappingUnmarshaller mappingUnmarshaller = new MappingUnmarshaller();
if (_classDescriptorResolver == null) {
_classDescriptorResolver = (JDOClassDescriptorResolver)
ClassDescriptorResolverFactory.createClassDescriptorResolver(BindingType.JDO);
}
MappingLoader mappingLoader =
mappingUnmarshaller.getMappingLoader(_mapping, BindingType.JDO, factory);
_classDescriptorResolver.setMappingLoader(mappingLoader);
_engine = new PersistenceEngineFactory().createEngine(
this, _classDescriptorResolver, factory);
}