Use tjava to transfer the result to another Talend Component

Highlighted
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

 

 

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.

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

What’s New for Talend Summer ’19

Watch the recorded webinar!

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