currently I need shared access mode because I have multiple open forms in my application. Each form has its own transaction and I never know in which form the user will decide to edit values and save them. The Database.lock() method would get a timeout because the other transactions will not finish until their forms are closed. The only solution I see at the moment is to use one transaction for all forms.
I don't understand why Castor assigns a read lock to any object loaded from the database. I don't need this read lock, can I avoid it somehow?
Tom
Tom,
I see that you're using shared access mode in the mapping descriptor. In your code, have you tried to make use of the Database.lock() method to upgrade the lock on the object? This method uses a block and wait strategy for locking so that if another transaction holds a read lock the Database.lock() method will wait for that transaction to finish before it acquires the lock.
Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
The Castor Project http://www.castor.org/
Apache Geronimo http://incubator.apache.org/projects/geronimo.html
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
