Alright, I've figured it out.
I just needed to wrap this piece of code in a transaction.
Even a dummyTransaction will do.
It ended up throwing a: org.jboss.cache.optimistic.DataVersioningException
Thanks ME!
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267875#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...