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
3 REPLIES
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