This content has been marked as final.
Show 4 replies
-
1. Re: optimistic locking conflicting update
aloubyansky Dec 7, 2004 7:56 AM (in response to baumgarten)1) no
2) there could be NoRowsAffectedException. What we know is UPDATE statement affected 0 rows but we don't know for what reason (and you might not use optimistic locking at all). -
2. Re: optimistic locking conflicting update
baumgarten Dec 7, 2004 8:14 AM (in response to baumgarten)Why should I not use optimistic locking? In the Admin Guide "CHAPTER 4 Transactions on JBoss - The JTA Transaction Service" it is mentioned as an alternativ to pessimistic locking.
In my app I get sometimes deadlocks mostly on getting entities by different transactions. This could be solved by optimistic locking. On deadlock my app is hanging for a while (until timeout). An optimistic locking conflicting would happen immediately. -
3. Re: optimistic locking conflicting update
aloubyansky Dec 9, 2004 4:26 AM (in response to baumgarten)"abv" wrote:
Why should I not use optimistic locking?
Did I say you should not? Don't understand your question. -
4. Re: optimistic locking conflicting update
baumgarten Dec 9, 2004 5:21 AM (in response to baumgarten)Sorry, I read too fast! Please forget my last question - next time I will read more carefully.