开发者

Stop message being redelivered to MDB

开发者 https://www.devze.com 2023-04-04 06:30 出处:网络
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 tran

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

精彩评论

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