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 ?
It depends what acknowledge mode you use with your mdb session. You can see a full article regarding this topic here
精彩评论