Stop message being redelivered to MDB

匆匆过客 提交于 2019-12-11 15:38:40

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!