简体   繁体   中英

How to selectively consume message from Tibco queue

I have two applications which send a JMS event to another system and the response message will be picked up by Message consumers in both applications. But they need to ignore the message if its not meant to their application.

I can pass some identifier to the external system which they can send it back. But how do i configure selective listening?

I am using Spring DMLC container for listening

Set a header and use a selector expression .

eg myHeader='foo'

As the javadoc says, see the JMS Spec for complete syntax.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM