topic
是否在您订阅的 Websphere MQ 上收到消息strictly ordered
?
换句话说,以与 a 类似的方式queue
,假设您的连接保持不变,您是否保证以与topic
发送消息相同的顺序接收消息?
根据 JMS 规范
JMS defines that messages sent by a session to a destination must be received
in the order in which they were sent. This defines a partial ordering
constraint on a session’s input message stream.
JMS does not define order of message receipt across destinations or across
a destination’s messages sent from multiple sessions. This aspect of a
session’s input message stream order is timing-dependent. It is not under
application control.
还
Although clients loosely view the messages they produce within a session
as forming a serial stream of sent messages, the total ordering of this stream
is not significant. The only ordering that is visible to receiving clients is
the order of messages a session sends to a particular destination.
Several things can affect this order like message priority,
persistent/non persistent etc.
因此,要回答您的问题,就是not really JMS provider specific
收到什么订单消息。它们将按照与上述信息一起发送的相同顺序被接收。然而,消息传递到服务器的顺序将受到消息优先级、持久性/非持久性等限制的约束。