[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBMESSAGING-126 -- JMS expiration

weston.price@jboss.com do-not-reply at jboss.com
Fri Nov 17 12:52:19 EST 2006


anonymous wrote : 
  | The exception is caught in JBM code so I don't think you'll have a chance to do anything with it. 
  | 

It's not actually. The MessageCallbackHandler invokes onMessage() on the listener. For JCA that is the JmsServerSession who calls the MessageEndpoint.onMessage() method. At this point you are in the EJB3 interceptor chain. If the MDB throws a RuntimeException it bubbles back up to the JmsServerSession where I handle it with a rollback or a commit. 

As far as the MessageCallbackHandler is concerned, an exception was never thrown.


 

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

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



More information about the jboss-dev-forums mailing list