Hi all,
look at this:

Database db = impl.newDatabase();

                   try {
--->>                   db.open("default", Database.OPEN_READ_WRITE);
                       int i = 1;
                   } catch (ODMGException ex) {
                       ex.printStackTrace();
                   }

runs to:
private static PersistenceBrokerFactoryIF instantiate() {
if (log.isDebugEnabled())
log.debug("Instantiate PersistenceBrokerFactory");
try {
Configurator configurator = OjbConfigurator.getInstance(); //HERE: the code steps OVER the next two lines! (without being executed!)
Configuration config = configurator.getConfigurationFor(null);
Class pbfClass = config.getClass("PersistenceBrokerFactoryClass", PersistenceBrokerFactoryDefaultImpl.class);
PersistenceBrokerFactoryIF result = (PersistenceBrokerFactoryIF) pbfClass.newInstance();
configurator.configure(result);
if (log.isDebugEnabled())
log.debug("PersistencebrokerFactory class: " + pbfClass.getName());
return result;
} catch (Exception e) {
log.error("Fehler joerg222", e);
log.error("Error in instantiation of PersistenceBrokerFactory class", e);
return new PersistenceBrokerFactoryDefaultImpl();
}
}



joerg ps: until now i didn't get it to work - nothing -:(


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to