[jboss-user] [JBossCache] - Optimistic Locking and version checking on read only objects

juerg.weilenmann do-not-reply at jboss.com
Fri Aug 3 09:48:03 EDT 2007


We are using JBoss Cache 1.4.1SP1 with optimistic locking. 

It seems, that when retrieving objects from the cache within a transaction in a read only manner (means only getter methods are called on the retrieved objects) that the version of the object is increased anyway when the transaction is committed.
As a result of this we get a version conflict exception in another transaction where the object is modified.

Can anybody confirm this behaviour? 

Thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070605#4070605

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070605



More information about the jboss-user mailing list