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,
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)
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Learn how to use an API-First Approach to Modernize your Applications
Take a look at this technical overview video of Talend API Designer
Find out how to get started with APIs