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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Integrate TalenJob in route

hi
I have a job :
- tFileInputDelimited -> tMap -> TAdvancedFileOutputXml just for a transformation
I export this jar file and reimport it as a TalendJob in a route
In this route I would like to files arriving in a cFile and tFileInputDelimited that I have in my job.
So from a cFile, launch a route.
how could I do it?
thks
Valery

Labels (3)
14 Replies
Anonymous
Not applicable
Author

Hi Edward,
that's an answer too. If there's no direct approach, JMS is a very good way to return data.
Thanks for the prompt reaction.
Carpe diem
Gabriel
Anonymous
Not applicable
Author

You can find a sample job and a corresponding route on my site at http://eost.net/eost/jobAdaptor/socketPipeJob.zip .
Note that in order to use the Camel MINA component you need to use the cConfig element to add the dependency.

Note that the Camel route shown below uses a glorified sticky note just to represent the Job. It's just for show. The real elements doing the work implemented with tMessageEndpoint and the appropriate Camel Mina uri. you can find more information on how to specify that uri in the Talend Integration Factory User's Guide, or online at http://camel.apache.org/mina.html

Note that the DI Job uses tSocket as documented in the Talend Component Reference Guide which you can download from our site. When you run this in Studio, start the Camel client first. It will keep trying to (recoonnect) until you start the Job. Note that by default the DI job will end after processing one request unless you put it in a loop. In contrast, if you did the same thing with tMOM for your job you could specify "Keep Listening" in the component view.
Anonymous
Not applicable
Author

Hi Ed,
I've never been fond of socket communication, but you are right, Mina looks effective for this use case.
Thankx a lot.
Gabriel
Anonymous
Not applicable
Author

bschuhmann,

Can you please share screen shots as I didn't see that.
Anonymous
Not applicable
Author

Its better to use a Camel component dependency instead of direct camel-*-alldep usage:
0683p000009MAF8.gif