0
我使用1個會話,1個異步MessageListener接收消息並處理線程中的每條消息。線程完成後,將使用會話提交或回滾來決定是否可以重新傳遞消息。但我真的擔心提交/回滾語句可能會對線程中處理的那些消息產生任何影響。例如JMS事務會話:針對特定消息的提交/回滾
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?