QAnywhere 消息会自然地映射到 JMS 消息。
QAnywhere | JMS | 注释 |
---|---|---|
QATextMessage |
javax.jms.TextMessage |
以 Unicode 格式复制消息文本 |
QABinaryMessage |
javax.jms.BytesMessage |
精确复制消息字节 |
下表介绍了内置标头的映射。在 C++ 和 JMS 中,这些是方法名;例如,Address 在 QAnywhere 中称为 getAddress() 或 setAddress(),在 JMS 中则称为 getJMSDestination() 或 setJMSDestination()。在 .NET 中,这些是属性,其名称则如下表所示;例如,Address 为 Address。
QAnywhere | JMS | 注释 |
---|---|---|
Address |
JMSDestination 和 JMS 属性 ias_ToAddress |
如果目标包含反斜线,则必须使用另一个反斜线来转义此反斜线。 只有地址的 JMS 部分映射到 Destination。当消息循环回 QAnywhere 时,很少有附加的 QAnywhere 地址后缀。此项会放入 ias_ToAddress。 |
Expiration |
JMSExpiration |
|
InReplyToID |
N/A |
不映射。 |
MessageID |
N/A |
不映射。 |
Priority |
JMSPriority |
|
Redelivered |
N/A |
不映射。 |
ReplyToAddress |
JMS 属性 ias_ReplyToAddress |
映射到 JMS 属性。 |
连接器的 xjms.receiveDestination 属性值 |
JMSReplyTo |
ReplyTo 设置为由连接器用来接收 JMS 消息的 Destination。 |
Timestamp |
N/A |
不映射。 |
N/A | JMSTimestamp | 将 JMS 消息映射到 QAnywhere 消息时,QAnywhere 消息的 JMSTimestamp 属性设置为 JMS 消息的 JMSTimestamp。 |
Timestamp | N/A | 将 QAnywhere 消息映射到 JMS 消息时,JMS 消息的 JMSTimestamp 设置为创建 JMS 消息的时间。 |
QAnywhere 属性
为传递到 QAnywhere 的 JMS 消息指定地址
![]() |
使用DocCommentXchange讨论此页。
|
版权 © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |