开发者

Stop message being redelivered to MDB

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜