Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
ravi999
Contributor III
Contributor III

Filtering in ESB routes

Hi, 

 

Row1.message.contains("RAVI") ---> We have a filter condition like this in Data Integration job. How to implement this in esb so that we can pull only selected messages in a topic

Labels (2)
3 Replies
Anonymous
Not applicable

I assume you are working with a message queue. With queues you don't select what you get and what you don't. But you can filter (throw away) what you don't want to work on. You could use a cMessageFilter for this (https://help.talend.com/reader/_kirWdGiwNgvHlXUtw8vGA/EYcLHqqMXBRmwePkiIzOJw).

 

FYI since you appear to be doing a lot with the ESB at the moment, a good resource to keep in your bookmarks is this...

http://camel.apache.org/components.html

Donatien1
Partner - Contributor III
Partner - Contributor III

Hello ravi999,

 

If you want you can use JMS Selector.

Your cJMS component will consume only the messages which contain the correct value in the header property named JMSSelector.

To configure it, you need to add a new field in the Advanced Setting tab of the cJMS component with name "selector" and value "RAVI".

 

Warning, you should modify your  productor to complete the JMSSelector header.

Anonymous
Not applicable

Nice @Donatien! I was being very literal and thinking just about message content, I didn't think about using headers.