Thanks. As I'll be away for a couple of days, I won't be able to look into this before Nov 2nd, though.
Regards Werner [EMAIL PROTECTED] wrote: > Werner, > > I have created bug 1241 for this. > > Regards, Vishal. > > -----Original Message----- > From: Werner Guttmann [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 19, 2005 3:45 PM > To: [email protected] > Subject: RE: [castor-dev] Query on the Access modes and locking > > Vishal, > > It looks to me as you might have an issue there. It'd be interested to > have a look at this myself. As such, can you please create a new issue > at http://jira.codehaus.org/browse/CASTOR and attach (if possible) a bug > report (following the bug report submission guidelines available at > http://castor.codehaus.org). > > Thannks in advance > Werner > > >>-----Original Message----- >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > >>Sent: Montag, 17. Oktober 2005 18:10 >>To: [email protected] >>Subject: [castor-dev] Query on the Access modes and locking >> > > > >>Hi, >> > > >>I was going through the online documentation and while > > >>reading through the "Advanced JDO -> Design" page I came > > >>across the following: >> > > >>"If a transaction requires a read lock on an object which is > > >>write-locked by another transaction, or requires a write lock > > >>on an object which is read-locked by another transaction, the > > >>transaction will block until the lock is released, or the > > >>lock timeout has elapsed. The lock timeout is a property of > > >>the transaction and is specified in seconds. A > > >>org.exolab.castor.persist.LockNotGrantedException is thrown > > >>if the lock could not be acquired within the specified timeout." >> > > >>When I use the DbLock and ReadOnly mode I find this statement > > >>to be true only one way i.e. When I have an object retrieved > > >>in the DbLocked mode and then I try retrieving the object in > > >>the ReadOnly mode using a different transaction (in a > > >>multithreaded environment), the retrieve issued from the > > >>second transaction blocks waiting for the first to complete. > > >>But, when I have an object retrieved in the ReadOnly mode and > > >>then try retrieving the object in the DbLocked mode using a > > >>different transaction (in a multithreaded environment), the > > >>retrieve issued from the second transaction is completed > > >>without getting blocked. >> > > >>Is that because the ReadOnly mode does not take a read lock > > >>on the object, but it does check if the object is retrieved > > >>in the DbLocked mode? >> > > >>Regards, Vishal. >> > > > > >>Confidentiality Notice >> > > > >>The information contained in this electronic message and any > > >>attachments to this message are intended for the exclusive > > >>use of the addressee(s) and may contain confidential or > > >>privileged information. If you are not the intended > > >>recipient, please notify the sender at Wipro or > > >>[EMAIL PROTECTED] immediately and destroy all copies of > > >>this message and any attachments. >> > > >>------------------------------------------------- >>If you wish to unsubscribe from this list, please send an > > >>empty message to the following address: >> > > >>[EMAIL PROTECTED] >>------------------------------------------------- >> > > > > > > ------------------------------------------------- > If you wish to unsubscribe from this list, please > > send an empty message to the following address: > > [EMAIL PROTECTED] > ------------------------------------------------- > > > > > Confidentiality Notice > > > The information contained in this electronic message and any attachments to > this message are intended > for the exclusive use of the addressee(s) and may contain confidential or > privileged information. If > you are not the intended recipient, please notify the sender at Wipro or > [EMAIL PROTECTED] immediately > and destroy all copies of this message and any attachments. > > ------------------------------------------------- > If you wish to unsubscribe from this list, please > send an empty message to the following address: > > [EMAIL PROTECTED] > ------------------------------------------------- > > ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

