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中使用的
现在还不确定原因,暂时作为工作记录.
分享到:
相关推荐
Selector
Flutter的file_selector插件可以帮助开发者在移动应用中方便地选择文件。 要使用file_selector插件,首先需要将插件的依赖项添加到pubspec.yaml文件中,并运行flutter pub get命令获取插件的最新版本。 在插件使用...
用selector设置button可用和不可用的样式
在simulink上进行BusCreator和BusSelector的简单实验
一个强大的selector注入器,它可以让view自动产生selector状态,免去了你写selector的麻烦。
selenium css selector 定位详解
Android selector 完整demo
带圆角的selector
CSS Selector 生成器
selectorgadget插件,R语言爬取网页
代码实现drawable的selector效果,不用为每个控件写selector样式; 另外,实现圆形图片处理、圆角图片处理功能
java selector 测试并发.多线程并发。
ListView Button ImageView 里应用selector选择器切换图片并保持住
Laravel开发-selector 选择器模式抽象类,用于管理用户级或运行时参数上的多态性。
一个关于SocketChannel、ServerSocketChannel、Selector的综合案例
Contact Selector在infopath中的使用!
This is a change Background Or TextColor Selector support library, with which you can directly specify the Background to be displayed in different states or TextColor Layout xml, such as clicking the ...
http://blog.csdn.net/zhufuing/article/details/20134255博客的demo下载
IPhone对@selector的函数如何传参数
前端开源库-matches-selector匹配选择器,检查一个DOM元素是否匹配一个给定的选择器,并提供适当的浏览器支持和单元测试。