[ojb-users] Long Transactions
Brought to you by:
thma
From: Stephan M. <Ste...@ce...> - 2002-06-13 16:32:43
|
Hello, can anybody give me a hint what'ts the right way to perform long transactions using OJB with the ODMG API? E.g. - Client requests an object by sending a request to the server - server performs OQL query = 1st transaction - object is send to client - client modifies object - client sends object back to server - server performs update = 2nd transaction How-to perform the update? I tried Transaction.lock(obj, Transaction.WRITE) but then the object is not written because the dirty check is performed against the object passed to the lock() method and not against the state of the persistent object (in the database or cache). Any ideas? Thanks, Stephan |