Call routines in the mediation view

One Star

Call routines in the mediation view

Hi,

I have coded some routines in the Integration view.
How can I use them into the mediation view ? (in a cProcessor component for instance)
The call of a routine works pretty good in the Studio, not in the runtime. 
Any ideas ?

Best regards
One Star

Re: Call routines in the mediation view

Try cTalendJob component
One Star

Re: Call routines in the mediation view

Hello,

A cTalendJob to call a routine from the mediation view ???
No way Smiley Happy. I prefer duplicate my code if there is no other solution...
Cheers.
Highlighted
One Star

Re: Call routines in the mediation view

Hello.
I have found a solution : you write all the java code the routines. 
Then, you create a fake job with a simple tJava component that imports the routines you want. 
Then, you export the fake job. Then, just open the file exported and you will find your routines in the userRoutines.jar
In your routines, just use the cConfig component and select the userRoutines.jar file and don't forget to edit the manifest of your route by selecting it, the right click "Edit Rout Manifest", then select the userRoutines.jar
That's all.

2019 GARTNER 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

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

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