![]() | |
Sun Java System Message Queue 3 2005Q1 技术概述 |
附录 A
可选 JMS 功能 Message Queue 实现JMS 规范指出了某些项是可选的:每个 JMS 提供者(供应商)可以选择是否实现这些项。本附录介绍 Message Queue 产品如何处理 JMS 可选项。
此材料最适合应用程序开发者阅读。
对每个 JMS 可选项的处理方式如表 A-1 所示:
表 A-1 可选的 JMS 功能
JMS 规范中的章节
说明和 Message Queue 处理
3.4.3
JMSMessageID"Since message IDs take some effort to create and increase a message's size, some JMS providers may be able to optimize message overhead if they are given a hint that message ID is not used by an application. JMS Message Producer provides a hint to disable message ID."
Message Queue 实现: 产品不会禁用消息 ID 生成(在 MessageProducer 中的所有 setDisableMessageID() 调用均被忽略)。所有消息都将包含有效的 MessageID 值。
3.4.12
Overriding Message Header Fields"JMS does not define specifically how an administrator overrides these header field values. A JMS provider is not required to support this administrative option."
Message Queue 实现: Message Queue 产品支持通过配置客户机运行时以管理方式覆盖消息标题字段的值(请参见覆盖消息标题值)。
3.5.9
JMS Defined Properties"JMS Reserves the 'JMSX' Property name prefix for JMS defined properties."
"Unless noted otherwise, support for these properties is optional."Message Queue 实现: Message Queue 产品支持由 JMS 1.1 规范定义的 JMSX 属性(请参见Message Queue 管理指南)。
3.5.10
Provider-specific Properties"JMS reserves the 'JMS_<vendor_name>' property name prefix for provider-specific properties."
Message Queue 实现: 使用特定于提供者的属性,其目的在于提供需要的特殊功能以支持提供者本地客户机使用JMS。不应将它们用于 JMS 至 JMS 的消息传送。Message Queue 3 不使用特定于提供者的属性。
4.4.8
Distributed Transactions"JMS does not require that a provider support distributed transactions."
Message Queue 实现: 此版本的 Message Queue 产品支持分布式事务(请参见事务)。
4.4.9
Multiple Sessions"For PTP <point-to-point distribution model>, JMS does not specify the semantics of concurrent QueueReceivers for the same queue; however, JMS does not prohibit a provider from supporting this." See section 5.8 of the JMS specification for more information.
Message Queue 实现: Message Queue 实现支持对多个消费者的队列传送。有关详细信息,请参见多个消费者的队列传送。