问题
Consider the following scenario :
I have a MDB that receives a message. On receiving this message is triggers a series of operations.Some calls are isolated in EJB's that have Requires_New as a transaction attribute and they all succeed. At the very end of the transaction I call sessionContext.setRollbackOnly().
Will this cause the message to be redelivered again to the MDB ?
回答1:
It depends what acknowledge mode you use with your mdb session. You can see a full article regarding this topic here
来源:https://stackoverflow.com/questions/7362143/stop-message-being-redelivered-to-mdb