[jboss-user] [JBossCache] - Re: Performing cache operations while in a catch() section

manik.surtani@jboss.com do-not-reply at jboss.com
Thu Aug 2 06:07:04 EDT 2007


Does your code in the try block fail due to a transaction failing?  

What seems to be the problem is that your cache participates in your transaction (perhaps a call to the cache in your try block), the tx fails, and then you attempt to try more operations on the cache in your catch block.

If the cache operation in catch doesn't need to be transactional, you could suspend the transaction before your cache call, and then resume it afterwards.

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

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



More information about the jboss-user mailing list