tjava not in a flow

One Star

tjava not in a flow

can anyone explain to me, why tjava components (escpecially tjava, tjavarow) don´t have to use in a flow and should predominant used in subjobs?
what are the disadvantages?
thx in advance
Community Manager

Re: tjava not in a flow

Hi
You can use tJavaRow in a data flow and you are able to access the column value, for example:
tMysqlInput--main--tJavaRow--LogRow
on tJavaRow:
output_row.id=input_row.id;
output_row.name=input_row.name.toUpperCase();
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: tjava not in a flow

thx!
because in the following post http://www.talendforge.org/forum/viewtopic.php?id=25163 they are speaking about not using it in a flow!?
Community Manager

Re: tjava not in a flow

Hi
tJava is used to execute the a piece of Java code, normally, it is used alone as a subjob, because you can't access the column value on tJava component. However, tJavaRow is normally used in a data flow and you are able to access column value.
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog