invoker = new StoreEventInvoker(listeners, this);
pb = PersistenceBrokerFactory.createPersistenceBroker(pbKey);
toBeStored = new HashSet();
MetadataManager metaManager = MetadataManager.getInstance();
RepositoryPersistor persistor = new RepositoryPersistor();
Enumeration descriptors = getClass().getClassLoader().getResources("META-INF/ojb_repository.xml");
while(descriptors.hasMoreElements())
{
URL descriptorUrl = (URL) descriptors.nextElement();
log.info("Merging OJB respository: "+descriptorUrl);
DescriptorRepository repo = persistor.readDescriptorRepository(descriptorUrl.openStream());
metaManager.mergeDescriptorRepository(repo);
}
}
catch (Throwable e)
{