Patches item #1038557, was opened at 2004-10-01 10:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=1038557&group_id=22866

Category: JBossMQ
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Tom Keeney (tmjkeeney)
Assigned to: Nobody/Anonymous (nobody)
Summary: Message Redelivery for BMT MDBs

Initial Comment:
I have prepared a patch at Adrian Brock's request that 
permits message redelivery for BMT MDBs that throw a 
RuntimeException.  This behavior follows the 
recommendations set forth for a JMS provider in 
O'Reilly's "Enterprise Java Beans, 3rd Edition", page 428.  
Please see http://www.jboss.org/index.html?
module=bb&op=viewtopic&t=53631 for a detailed 
description of the problem and the solution.  The patch 
keeps the current exception handling behavior for the 
JMSCI message listener (exceptions are swallowed using 
the DefaultUncheckedHandler).  Adrian Brock said he 
would research a way to make this exception handler 
configurable by providing an <uncheckedhandler> 
configuration in the invoker-proxy-binding.  The JMSCI 
has been wired in anticipation of this change.  After the 
expection handler has been made configurable, the user 
may use the RethrowUncheckedHandler, enabling 
message redelivery for BMT MDBs.

The patch has been tested with both CMT/BMT MDBs 
listening to both a Topic and a Queue.  There was no 
change in the current behavior.  After switching the 
exception handler in the JMSCI code (by modifying the 
UncheckedHandler local variable assignment in the 
innerCreate() method to an instance of 
RethrowUncheckedHandler), the CMT MBDs did not have 
any noticeable change in behavior, except for 
setRollbackOnly being called twice when the MDB throws 
a RuntimeException.  See the JBoss forum posting for a 
discussion on this and resolution.  The 
RethrowUncheckedHandler caused a message redelivery 
for BMT MDBs that throw a RuntimeException, then final 
delivery to the DLQ after max retries.

Adrian Brock has requested that this patch be assigned 
to ejort.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=1038557&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to