hello,
Using Castor CVS, Global demarcation, Oracle and JBoss 3.2.3. The JDO
handle is static, each transaction gets their own database handle.
UserTransaction 1:
db = jdo.getDatabase()
ut.begin();
// Load parent which automatically loads the Array of children.
parentObj = db.load(parent.class, parentKeyValue, Database.ReadOnly);
db.update(child); // to sync the timestamps
db.delete(child); // remove a child
ut.commit();
UserTransaction 2:
db = jdo.getDatabase()
ut.begin();
// Load parent which automatically loads the Array of children.
parentObj = db.load(parent.class, parentKeyValue, Database.ReadOnly);
Castor throws an ObjectNotFoundException ... was not found in persistent
storage.
I suspect that Castor retains the deleted object in it's cache, but why
does the latter operation in transaction 2 try to load the recently
deleted object from DB?
The only way I've been able to recover is to shutdown container, which
resets Castor cache.
Any help would be appreciated.
Donnie
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user