`
snowing11812
  • 浏览: 117934 次
  • 来自: ...
社区版块
存档分类
最新评论

queueBrowser 的 selector 不能像类似consumer的 selector正常工作

阅读更多

1.不包含自定义属性
String selector = "JMSTimestamp > 100011000";
2.包含自定义属性
String selector = "myparam <> 'value1' AND JMSTimestamp > 100011000";

对于条件1, queueBrowser 与 consumer 的 selector 都能正常工作

对于条件2, queueBrowser 不能正常工作,不能返回我们期望的数据,但下面的保留字段在set到property中的时候,是可以在selector中使用的

--JMSXAppID - Identifies the application sending the message.
--JMSXConsumerTXID - The transaction identifier for the transaction within which this message was consumed.
--JMSXDeliveryCount - The number of message delivery attempts.
--JMSXGroupID - The message group of which this message is a part.
--JMSXGroupSeq - The sequence number of this message within the group.
--JMSXProducerTXID - The transaction identifier for the transaction within which this message was produced.
--JMSXRcvTimestamp - The time the JMS provider delivered the message to the consumer.
--JMSXState - Used to define a provider-specific state.
--JMSXUserID - Identifies the user sending the message.
 



事实上,经过简单试验, 对于"JMSX"前缀的变量似乎都是可以在selector中使用的

现在还不确定原因,暂时作为工作记录.

0
1
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics