5. The <acknowledge-mode> attribute defines the way bean managed message bean's send an acknowledgement to the message service when the transaction has failed.
It is not very clear what 'transaction failure' means in this context.
Did the transaction fail due to explicit ut.rollback() call?
- If yes, option 5 is valid. A BMT MDB acknowledges the JMS destination that it has successfully received the message.
Did the transaction fail due to a System Exception thrown from onMessage()?
- If yes, option 5 is not valid. The bean will not send any acknowledgement to the destination. The container destroys the bean instance and attempts to redeliver the message.
SCJP, SCWCD, SCBCD, OCA J8