Stopping a message of a Route in a cTalendJob

Six Stars

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

Tags (2)
Community Manager

Re: Stopping a message of a Route in a cTalendJob

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)

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read