Six Stars

Use tjava to transfer the result to another Talend Component

Hello,

 

I would like to save the result from a tJava Job into a MSQL database without saving it as a physical file.

I want to transfer it to another component (tFileOutputDelimited ?)

My question is how can I transfer an object or a string to a component to save it to a database?

I do not know exactly how to proceed.

Do I need an output stream?

 

I am grateful for every answer.

Kind regards

 

 

3 REPLIES
Moderator

Re: Use tjava to transfer the result to another Talend Component

Hello,

The custom code tJava component will be executed first, but only once in the subjob. Normally, tJava has no input or output data flow and is used as a separate subjob. The workflow looks like: tFileinputdelimited-->tJava

If you want to transfer the result to another component, please take a look at component tJavaRow.

The work flow looks like:tFileinputdelimited-->tJavaRow-->tFileOutputDelimited

tJavaRow component applies some transformation to the data being processed.

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re: Use tjava to transfer the result to another Talend Component

Hello Sabrina,


could you please show me an example with the components.

 

Kind Regards

Moderator

Re: Use tjava to transfer the result to another Talend Component

Hello,

Here is a KB article about:https://community.talend.com/t5/Design-and-Development/What-is-the-difference-between-tJava-tJavaRow....

Feel free to let us know if it is OK with you.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.