I am using Talend ESB.
I'm trying to get some variables created in the tjava component via Java code into an mySQL-Database.
I've done al lot of Research I think it would be able using components like: tjava -> tBufferedOutput -> tBufferedInput -> tMap -> mySQLOutput
1. could someone tell me what tBufferedOutput and tBufferedInput more detailed could be used for?
2. does it make sense to use them in this content?
3. how can I build this .. what do i have to take care for?
I am thankfull for every idea even if there are some without tbufferedIn-/Output
Here is a related scenario:TalendHelpCenter:Returning a value from a child Job to the parent Job about how to use tBufferedOutput and tBufferedInput component in job.
Hope it will be helpful.
From your job requirement that passing a variable to next output, the component tJavaRow will meet your needs. Normally, tJava has no input or output data flow and is used as a separate subjob.
If you are creating some varibles in tJava, then you can assigned them to globalMap varibles like
'globalMap.put("myVar","myVarValue")' in tJava.
and then you have to use tFixedFlowInput component in which you will pass assigned value using
globalMap.get("myVar") and then link to tSQLOutput.
If you this then your flow would be,
tjava --onComponentOk--> tFixedFlowInput --main--> tSQLOutput
Hello, thank you for the answers.
Vishu, that's the way I want to transfer the data. Thank you very much.
But unfortunately I do not know exactly where I enter in the component tFixedFlowInput the globalMap.get ("myVar") call.
Could you maybe take a screenshot of a sample scenario?
Thank you very much for your help.
@TalendNoob Please check the screenshot attached.
let me know if you find any difficulty.
@VishuThank you very much for your Screenshot!!!!
Thats great ! It works...
In my example, I need several classes, not just one. Is there also a possibility to do this with routines?
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Take a look at this technical overview video of Talend API Designer
Find out how to get started with APIs