#1 2009-03-18 09:11:03

FFO
Guest

TmomOutput

may be it's obvious, but I'm trying to read a flat file (tfileinputfullrow) and send the content to an MQ queue with tMomoutput.
My problem:
the "build-in" schema of tfileinputfullrow is not updatable (read-only) with one column named "line"
when tMomoutput is expecting a column named "message"...(of course the job do not run with "unresolved" argument....)

any "simple" solution?

Thanks in advance

#2 2009-03-18 10:13:35

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

Re: TmomOutput

Hello
Here are two solutions:

1) When you link tFileInputFullRow to tMomOutput, it will prompt that 'Do you want to get the schema of the target schema', click on 'Yes' to change the shema on tFileInputFullRow. (see screenshot1)

2) Add a tMap component between tFileInputFullRow and tMomOutput, then change the column name as 'message.(see screenshot 2,3)

Best regards

         shong


Uploaded Images


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

#3 2009-03-18 10:42:34

FFO
Guest

Re: TmomOutput

Thanks Shong,

Direct link works fine, I don't know why I didn't succeed at first attempt...
I was really reluctant to the Tmap solution...

Have a nice day!

Board footer

Powered by FluxBB