Calling job from an external Java application return code
We're following this
article (https://help.talend.com/search/all?query=Calling+a+Talend+Job+from+an+external+Java+applica...to execute Talend job. The runJob() method is used to execute the job. If there was an error, the method returned error code but no messages. Is there a way for the job to return the error code and message back to the calling application? What are the different approaches?
Method: String[][] runJob (String[] args); from routintes.system.api.TalendJob
Hi
You can use tLogCatcher in the job to capture the error message and the return code, log the message to a file or database, read the message back to your application if the job fails.
Best regards
Shong
Thanks for your reply. Just to confirm, there is no way to include the error message along with the error code being returned to the calling Java application, correct?