I suppose that is something I could do, just not overly pleased with the inconsistent behaviour that will arise when a cache op is called with a tx which has been marked for rollback, depending on whether a sync is already registered or not. TBH, I'd much prefer consistent behavoiur.
What you could do is wrap the cache calls in a try block, and if you get an ISE then skip the cache step altogether since you know the tx will roll back.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204687#4204687
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204687