停止消息被重新传递给MDB [英] Stop message being redelivered to MDB
本文介绍了停止消息被重新传递给MDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请考虑以下情况:
我有一个收到消息的MDB。在收到此消息时触发一系列操作。一些调用在EJB中被隔离,其中有Requires_New作为事务属性,并且它们都成功。在交易的最后,我调用sessionContext.setRollbackOnly()。
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().
这是否会使消息再次重新发送到MDB?
Will this cause the message to be redelivered again to the MDB ?
推荐答案
这取决于您在mdb会话中使用的确认模式。您可以看到有关此主题的完整文章这里
It depends what acknowledge mode you use with your mdb session. You can see a full article regarding this topic here
这篇关于停止消息被重新传递给MDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文