Ajith Kannan
Ajith Kannan

Reputation: 842

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

Upvotes: 0

Views: 364

Answers (1)

Gary Russell
Gary Russell

Reputation: 174534

Set a header and use a selector expression.

e.g. myHeader='foo'

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

Upvotes: 2

Related Questions