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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

calling a component from java code inside a tJava component

Hi Team,
            I have a use case where i am planning to call a talend component from a java code inside a tJava component. I have searched online to know how this could be done, but wasn't able to get anything concrete.
            Can anyone help me with this?
            Please let me know on any update needed.

Thank You
Labels (3)
4 Replies
Anonymous
Not applicable
Author

Can you tell us what you are trying to achieve? This is a very strange request without knowing what you are trying to do. I cannot think of a single reason why this would benefit you at all.
However, you can look at the auto generated code that Talend produces. Maybe you can extrapolate from that.
Anonymous
Not applicable
Author

Hi ,
    I have a custom java code snippet where i would like to call a component in talend within the java code.I hope this helps.
Also,as you suggested ,let me check to mend the code that Talend generates to include my custom code in it.

Thank You
Anonymous
Not applicable
Author

I have a query like below

 

There is a joblet which stores tlogCatcher and tStatCatcher statistics into Mysql database on any Die on error or Java Exception in the job 

 

I have another child job which takes care of sending mail in case of any failure in the job ( In this job_failureNotification  job , i am doing calling AWS SES API sending raw mail with html header , body , footer - Error log i am retrieving from Mysql database based on some condition )

 

I have 14 jobs which runs sequentially one after other .I need to send notification on Job failure only . So i have tPostJob component in each and every job which takes care of calling job_failureNotification . I should call the failureNotification job if and only if tLogCatcher_1.type='tDie' or 'tJavaException' 

 

Is there any way of calling using If condition of globalMap.get(tLogCatcher_1.type) in tPostJob Flow 

Anonymous
Not applicable
Author

@sankar 

 

I have already answered your query in another post and the link for it is as below.

 

https://community.talend.com/t5/Design-and-Development/globalMap-get-tLogCatcher-1-type-in-tPostJob-...

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved