Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
SncJt
Contributor III
Contributor III

Stopping a message of a Route in a cTalendJob

Hello,

 

I have a really basic Route, waiting for a message from a ActiveMQ queue.

Then, when a message arrive, I call a cTalendJob which do what I have to do, and after that, the message is sent to another ActiveMQ queue.

 

I would like to know if, when I am in my cTalendJob, I have a way to stop the message in my route.

I don't want to use a tDie or this kind of component, but is there another possibility to stop the message (the message will not be sent to the ended ActiveMQ queue) ?

 

I must use a cMessageRouter to check the variable returned by my job, and continue or not to the ActiveMQ queue ?

 

Thank you for your help,

 

Best regards

Labels (2)
1 Reply
Anonymous
Not applicable

You can do with the tRouteOutput component. Set a "Header" which identifies whether the message should be sent to the ActiveMQ or not, then in the route you can orchestrate this message away from the ActiveMQ if the header identifies it should not be moved on. You can use a cMessageFilter to achieve this in your route (https://help.talend.com/reader/_kirWdGiwNgvHlXUtw8vGA/EYcLHqqMXBRmwePkiIzOJw)