Castor 0.8.8

<citation>

The recent changes in JDO caused problems for the users of CastorService of
Turbine servlet
framework since the following code now doesn't work:

  JDO.loadConfiguration (new InputSource (databasefile),
                                   new LocalResolver(databasefile, logger),
                                   getClass().getClassLoader());
  jdo = new JDO (databasename);
  db = jdo.getDatabase();

I apologize for this inconvenience and ask all who have such code
either to insert

  jdo.setClassLoader(getClass().getClassLoader())

before db = jdo.getDatabase() or to replace the above piece with the
following:

  jdo = new JDO (databasename);
  jdo.setConfiguration(databasefile);
  jdo.setEntityResolver(new LocalResolver(databasefile, logger));
  jdo.setClassLoader(getClass().getClassLoader());
  db = getDatabase();

I have just added the method setEntityResolver() that is used above.
As for me, the latter way is better.
Moreover, I propose to deprecate loadConfiguration() methods.

Best regards,
Oleg Nitz

</citation>

Thanks,
PLESK Technical Contact
Rostislav Beloff



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to