[jboss-user] [JBossCache] - rollback behaviour when using optimistic locking
lior_kanfi
do-not-reply at jboss.com
Sat Oct 6 16:21:59 EDT 2007
I am using Tree Cache as follows:
1. get an object from the cache
2. change the object, (call a set method)
3. setRollbackOnly
Assumptions:
1. all steps are running in the same TX no serialization
2. all steps are running at the same ejb method in the server.
My expectations after reading the optimistic docs, is Tree Cache would create a copy of the nodes and will retrun me a copy of my object and not the actual object reference and thus will rollback my changes.
BUT, I see the object isn't rollback and my changes are stored, any insights ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092288#4092288
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092288
More information about the jboss-user
mailing list