Like so many I am new to OJB and ODMG. I'm trying to understand ODMG
transactions. In particular, what happens to changed objects if a
transaction is aborted. So, I start a transaction, lock some objects to
that transaction, change the objects by calling a setter (for example),
and then abort the transaction. Do the objects revert to their state
before the lock?
In my testing the objects do not revert. I need to restore them myself.
But this doesn't seem right within my concept of a transaction.
The javadoc for org.apache.ojb.odmg.TransactionImpl abort method states:
Abort and close the transaction. Calling abort abandons all persistent
object modifications and releases the associated locks. Aborting a
transaction does not restore the state of modified transient objects
I'm not clear on just what this means, perhaps because I'm not sure of
the definitions of a persistent and a transient object, and I'm not sure
of the exact meaning of the phrase "abandons all persistent object
modifications".
I have ordered the ODMG book, so perhaps that will clear things up. But
I would appreciate any clarifications.
Thanks, Will
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>