Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
首先,我是 MQ 概念的新手,最近试图理解事物。
我知道回退方法用于回滚自上一个同步点以来在工作单元中发生的任何未提交的放置或获取事务。
我的问题是:
回退方法,是立即回退队列中的消息还是在回退计数达到后?(我猜回退方法和回退队列是相关的)
即时。它将消息返回到原始队列。如果您的 J2EE 容器具有对回退消息的内置支持,则逻辑将检查回退计数,如果已达到,则将消息放入回退队列中。
我们是否必须在每个退出方法之后调用一次提交?
不。