JMS队列消息接收命令 [英] JMS queue message receive order
问题描述
我正在添加到目的地:
producer.send(Msg1);
producer.send(Msg2);
Msg1
和 Msg2
将在所有情况下依次添加(如网络故障和延迟等)。
p>消息排序不保证(而不是规范规定),而 总JMS消息订购 说明了为什么的细节。另请参阅Stack Overflow post 如何处理邮件的顺序在JMS中? 。
I am adding two JMS messages in the same destination sequentially. Will both of these messages be received in the same order in which I have added them or is there a chance for reverse ordering, that is, which ever the message is received first in the destination will be retrieved first.
I am adding into a destination as:
producer.send(Msg1);
producer.send(Msg2);
Msg1
and Msg2
will be added sequentially in all the cases (like network failures and latency. etc.)?
Message ordering is not guaranteed (and not mandated by the specification) and Total JMS Message ordering explains the details of why. Also see the Stack Overflow post How to handle order of messages in JMS?.
这篇关于JMS队列消息接收命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!