• Index
  •  » Talend Open Studio for Data Integration » Component creation
  •  » interaction between tFileInputDelimiter and tJava

#1 2010-02-03 14:37:11

sonal
Member
Registered: 2009-05-18
Posts: 30

interaction between tFileInputDelimiter and tJava

Tags: [file, iterate]

Hi All,

I've a scenario under which, there is one tJava component and one tFileInputDelimiter. The location of flat file stored in tFileInputDelimiter needs to be read by tJava component. There is a rountine which converts the flat file into xml format. But the routine needs the location of flat file as the input. tJava component calls this routine. Hence, is there any way by which we can directly feed the flat file represented by tFileInputDelimiter to tJava for further processesing??
Many thanks in advance.
please help.

Sonal

Offline

#2 2010-02-04 07:11:14

shong
Talend team
Registered: 2007-08-29
Posts: 10306
Website

Re: interaction between tFileInputDelimiter and tJava

Hello Sonal
Yes, you can iterate each row(file path) on tJava, your job looks like:
tFileInputDelimited---row1---tFlowToIterate---iterate--tJava
on tJava:

Code:

RoutineName.methodName((String)globalMap.get("row1.filepath"));

About usage of tFlowToIterate, see [Forum, topic 5827] [resolved] How to use Flowtoiterate.
Best regards

         shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Component creation
  •  » interaction between tFileInputDelimiter and tJava

Board footer

Powered by FluxBB