<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to call external Java application in talend? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-call-external-Java-application-in-talend/m-p/2228646#M19840</link>
    <description>Hi Kumar, 
&lt;BR /&gt;Please find below some steps that you can use to get a Talend based job called from within Eclipse. 
&lt;BR /&gt;You will want to use the 'Export Job' option on the job you want to call. This will create the jar files needed to call the java class. Once you have done that, unzip the file and copy the jar files in a folder that resides within an Eclipse project. We use a project to hold jar files from external sources which these are. 
&lt;BR /&gt;Once you have the jar files copied to your Eclipse workspace, add the jar files to the classpath (aka buildpath) of the project that holds the class that will be calling your Talend based job. 
&lt;BR /&gt;From here you just need to add a few lines of java code to call your job. See below sample code. 
&lt;BR /&gt;NOTE: The Sample_TalendJob reference listed below is the name of the job within Talend that you exported. 
&lt;BR /&gt;Also, the below example has a date value being passed in via the argument list. 
&lt;BR /&gt;String[] etlArgs = { "--context=custom", "--context_param processDate=" + processDate }; 
&lt;BR /&gt;String returnCode[][]; 
&lt;BR /&gt;Sample_TalendJob sampleTalendJob = new Sample_TalendJob(); 
&lt;BR /&gt;returnCode = sampleTalendJob.runJob(etlArgs); 
&lt;BR /&gt;if (returnCode.equals("0")) { 
&lt;BR /&gt; // job ran without error 
&lt;BR /&gt;} else { 
&lt;BR /&gt; // job encountered error 
&lt;BR /&gt;} 
&lt;BR /&gt;Hope the above helps. 
&lt;BR /&gt;Tom</description>
    <pubDate>Tue, 10 Dec 2013 19:51:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-10T19:51:43Z</dc:date>
    <item>
      <title>how to call external Java application in talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-call-external-Java-application-in-talend/m-p/2228644#M19838</link>
      <description>Hi all,
&lt;BR /&gt;We implemented one logic with java code,this is located in eclipse.
&lt;BR /&gt;I want to call external java code in Talend, then the java code is execute in eclipse.
&lt;BR /&gt;how to call external java code in talend?
&lt;BR /&gt;Thanks in Advance.
&lt;BR /&gt;Regards,
&lt;BR /&gt;kumar.talend</description>
      <pubDate>Tue, 10 Dec 2013 11:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-call-external-Java-application-in-talend/m-p/2228644#M19838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-10T11:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to call external Java application in talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-call-external-Java-application-in-talend/m-p/2228645#M19839</link>
      <description>hi, 
&lt;BR /&gt;have a look at : 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/search/all?query=Calling+a+Talend+Job+from+an+external+Java+application&amp;amp;content-lang=en" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=Calling+a+Talend+Job+from+an+external+Java+application&amp;amp;content-lang=en&lt;/A&gt; 
&lt;BR /&gt;PS : Don't forget to use search Talend forum option OR Talend help center ... there are a lot of great informations about Talend. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
      <pubDate>Tue, 10 Dec 2013 12:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-call-external-Java-application-in-talend/m-p/2228645#M19839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-10T12:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to call external Java application in talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-call-external-Java-application-in-talend/m-p/2228646#M19840</link>
      <description>Hi Kumar, 
&lt;BR /&gt;Please find below some steps that you can use to get a Talend based job called from within Eclipse. 
&lt;BR /&gt;You will want to use the 'Export Job' option on the job you want to call. This will create the jar files needed to call the java class. Once you have done that, unzip the file and copy the jar files in a folder that resides within an Eclipse project. We use a project to hold jar files from external sources which these are. 
&lt;BR /&gt;Once you have the jar files copied to your Eclipse workspace, add the jar files to the classpath (aka buildpath) of the project that holds the class that will be calling your Talend based job. 
&lt;BR /&gt;From here you just need to add a few lines of java code to call your job. See below sample code. 
&lt;BR /&gt;NOTE: The Sample_TalendJob reference listed below is the name of the job within Talend that you exported. 
&lt;BR /&gt;Also, the below example has a date value being passed in via the argument list. 
&lt;BR /&gt;String[] etlArgs = { "--context=custom", "--context_param processDate=" + processDate }; 
&lt;BR /&gt;String returnCode[][]; 
&lt;BR /&gt;Sample_TalendJob sampleTalendJob = new Sample_TalendJob(); 
&lt;BR /&gt;returnCode = sampleTalendJob.runJob(etlArgs); 
&lt;BR /&gt;if (returnCode.equals("0")) { 
&lt;BR /&gt; // job ran without error 
&lt;BR /&gt;} else { 
&lt;BR /&gt; // job encountered error 
&lt;BR /&gt;} 
&lt;BR /&gt;Hope the above helps. 
&lt;BR /&gt;Tom</description>
      <pubDate>Tue, 10 Dec 2013 19:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-call-external-Java-application-in-talend/m-p/2228646#M19840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-10T19:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to call external Java application in talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-call-external-Java-application-in-talend/m-p/2228647#M19841</link>
      <description>Hi , I am already doing the same , but this might be the case that Talend is not throwing the exception in my scenario and is simply writing on to the console . and hence , the exception is not caught.&lt;BR /&gt;Thanks for the timely response.</description>
      <pubDate>Tue, 17 May 2016 10:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-call-external-Java-application-in-talend/m-p/2228647#M19841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T10:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to call external Java application in talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-call-external-Java-application-in-talend/m-p/2228648#M19842</link>
      <description>Hi&amp;nbsp;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;yadavjyoti24,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Have you tried to use &amp;nbsp;tlogcatcher component in your job? Which&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;can be used to capture exception and log them(console, file or db table ).&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 18 May 2016 09:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-call-external-Java-application-in-talend/m-p/2228648#M19842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-18T09:36:11Z</dc:date>
    </item>
  </channel>
</rss>

