Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » QAnywhere » 连接器 » 从 JMS 连接器向 QAnywhere 客户端发送消息 » 为传递到 QAnywhere 的 JMS 消息指定地址

 

将 JMS 消息映射到 QAnywhere 消息

JMS 消息会自然地映射到 QAnywhere 消息。

JMS 消息内容

JMS

QAnywhere

注释

javax.jms.TextMessage

QATextMessage

以 Unicode 格式复制消息文本

javax.jms.BytesMessage

QABinaryMessage

精确复制消息字节

javax.jms.StreamMessage

N/A

不支持

javax.jms.MapMessage

N/A

不支持

javax.jms.ObjectMessage

N/A

不支持

JMS 内置标头

下表介绍了内置标头的映射。在 C++ 和 JMS 中,这些是方法名;例如,Address 在 QAnywhere 中称为 getAddress() 或 setAddress(),在 JMS 中则称为 getJMSDestination() 或 setJMSDestination()。在 .NET 中,这些是属性,其名称则如下表所示;例如,Address 为 Address。

JMS

QAnywhere

注释

JMS Destination

N/A

JMS Destination 必须设置为在连接器属性 xjms.receiveDestination 中指定的队列。

JMS Expiration

Expiration

JMS CorrelationID

InReplyToID

JMS MessageID

N/A

不映射。

JMS Priority

Priority

JMS Redelivered

N/A

不映射。

JMS ReplyTo 和连接器的 ianywhere.connector.address 属性值

ReplyToAddress

连接器地址与 JMS ReplyTo Destination 名称连接在一起,中间用 '\' 分隔。

JMS DeliveryMode

N/A

不映射。

JMS Type

QAnywhere 消息属性 JMSType

JMS Timestamp

N/A

不映射。