Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Should I use tBufferedOutput and tBufferedInput? Should I use tJava?

Hello together,    

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

Labels (3)
5 Replies
Anonymous
Not applicable
Author

Hello,

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.

 

Best regards

Sabrina

Vishu1
Employee
Employee

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

 

Thanks

Anonymous
Not applicable
Author

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.

Vishu1
Employee
Employee

@TalendNoob Please check the screenshot attached. 

let me know if you find any difficulty.

 

Thanks,


fixedflow.png
Anonymous
Not applicable
Author

@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?