I am new to camel/talend routes and i would like to achieve the following:
i have a job that looks like this:
Trouteinput -> Tmap1 ->tJavaRow1 -> Tmap2 -> tJavaRow2 ->tJavaRow3 -> tRouteoutput
I only extracted the logging components that are relevant for my case.
Purpose is to log what happens in the job in 2 steps(Tmap1,tJavarow1 for step 1, Tmap2,tJavaRow2 for step2).
Mostly they have the same output like step finished. But they have 1 column that differs. The exch column.
Route:
cJMS -> cTalendjob ->cMessageRouter->(when1, when2) cProcessor x2 ->csetHeader x2 ->cWiretap x2
The headers from tRouteoutput are send into the csetHeader and then send to a messagecollector. This works fine.
What do i want to achieve?
I am currently struggling with the following:
In the job i have the 2 exch columns that are defined as a body type.
1: How do i filter on this body type in the cMessageroute when Trigger line?
2: Is there a more efficient way of doing this?