java - Websphere MQ 主题 - 它们是否严格排序?

标签 java messaging ibm-mq jms-topic

您订阅的 Websphere MQ 主题上收到的消息是否严格排序

换句话说,与队列类似,假设您的连接得到维护,您是否保证按照发送的顺序接收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.

因此,要回答您的问题,接收的订单消息并不是 JMS 提供商特定的。它们将按照与上述信息一起发送的相同顺序接收。然而,消息传递到服务器的顺序将受到消息优先级、持久/非持久等限制的约束。

关于java - Websphere MQ 主题 - 它们是否严格排序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21727084/

相关文章:

java - 如何使用 Java 在 Alfresco 中编辑修改和修饰符属性

java - 如何在 Spring 配置中将静态常量作为参数传递?

transactions - 具有多个消费者但只有一个事件的 MQ 队列

php - PHP 中的 MySQL 数据顺序不正确

c# - 创建安全连接

messaging - IBM MQ - 一对多消息流

java - 解码UTF问题?

java - Java中的数字升序

php - Codeigniter 奇怪的查询结果

java - 为 MQSeries 编写 Java 客户端的最低要求是什么?