Four Stars

How to execute java code with diferent methods

Hello,

 

I would like to know how to execute own code (from an existing class) into Talend. There is any example?

 

On the other hand, how I can take the tFileInput variables as input?


Thanks.

3 REPLIES
Four Stars

Re: How to execute java code with diferent methods

Hi ,

We have java components(tJava,tJavaflex) as well as routines concept in talend to implement the custom java code.

 

Thanks,

Premchand

Ten Stars

Re: How to execute java code with diferent methods

You can load a Java library as part of your job execution and refer to the library methods in your components.

 

Some components expose variables that you can refer to elsewhere.  Read the documentation for the relevant component to see which variables are available.  If a particular setting isn't exposed by Talend, you can sidestep that by using a global or context variable in the setting.  Global and context variables are visible to all components.

Five Stars

Re: How to execute java code with diferent methods

Hello,

 

   To execute your own code do it:

1) Transfer your Class code to routines in Repository:arq3.PNG

 

 2) Use components tJava/tJavaRow to use your own code in Jobs:

arq4.PNGarq4.PNG

 

arq5.PNG

 

Evando

 

Evando Souza