【发布时间】:2016-10-28 08:37:16
【问题描述】:
我使用 1 个会话、1 个异步 MessageListener 来接收消息并在线程中处理每条消息。线程完成后,将使用会话提交或回滚来决定是否可以重新传递消息。但我真的担心提交/回滚语句可能会对线程中处理的那些消息产生任何影响。例如
1 session
1 msg listener
---TIME---->
[MSG1: receive] --------------- processing -----------------> [MSG1: rollback]
[MSG2: receive] --------------> [MSG2: commit]
- At the time MSG2 commit, may be MSG1 also be committed?
If it is right, can I execute commit/rollback for specific MSG only?
【问题讨论】:
标签: session jms commit rollback