I am using JBoss 3.2. If a transaction is rolled back the container puts the message again in the queue and tries to execute it again. Is is possible to limit the number of times the container will put the message back and try to execute . In particular i want the container to call the onMessage() method of MDB only once even if the transaction subsquently fails. Can i configure this anyway.
Thanks for any help.
Set the redelivery count to 0 in the invoker proxy binding
(examples in this forum).
NOTE: There is a bug in 3.2.1 fixed in 3.2.2RC3 were
the redelivered flag is not set durng two phase rollback
which means the redelivery count is ignored.