[jboss-user] [Messaging, JMS & JBossMQ] - onMessage:catching all Throwable but message redelivered

dkane do-not-reply at jboss.com
Mon Sep 3 06:17:24 EDT 2007


Dear colleagues, 

My onMessage method of MDB calls session bean that performs database operations. 
Some database errors (constraint violation, etc.) are normal cases and should not cause message redelivery. So I wrapped the whole onMessage code into the try..catch . But even if I catch all Exceptions and even Throwables, message is being redelivered. 
When no error happens, it is not being redelivered. 
How to avoid this unwanted redelivery ? 

Thank you. 


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

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



More information about the jboss-user mailing list