【发布时间】:2020-02-13 04:18:14
【问题描述】:
是否可以使用 JMS 进行基于内容的过滤?
IBM MQ 发布/订阅似乎允许基于内容的过滤 https://www.ibm.com/support/knowledgecenter/en/SSKM8N_8.0.0/com.ibm.etools.mft.doc/bq13460_.htm https://www.ibm.com/support/knowledgecenter/en/SSKM8N_8.0.0/com.ibm.etools.mft.doc/bq13360_.htm
我试图用我的 JMSListener 找到一种方法来过滤 Body 元素,但我无法让它工作..
【问题讨论】:
-
我相信是outside the JMS Spec。
>The message consumer then receives only messages whose headers and properties match the selector. ... A message selector cannot select messages on the basis of the content of the message body.我不知道是否有办法以某种方式附加那些专有的 IBM 过滤器。 -
IBM MQ 不能基于正文进行过滤,只能基于消息属性。
-
@JoshMc 你说的完全正确,我认为我们可以,但我意识到只有使用 Websphere Message Broker 才有可能。谢谢
标签: java ibm-mq spring-jms