<?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 [resolved] Close the database connection on Job Error/fail in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352614#M118977</link>
    <description>Hi All,
&lt;BR /&gt; How to close the database connection in the Talend job on job erros. In our job we open a database connection with tMSSqlConnection and at the end of the job we close it. But if some thing goes wrong in the middle of the job, how to close the database connection? 
&lt;BR /&gt;Do talend job will close automatically on error/expcetion ?
&lt;BR /&gt;I can check on every component on component error and close the connection, but just wondering is there any easy way to close all connections on job exception/error.
&lt;BR /&gt;Thanks
&lt;BR /&gt;Ramesh</description>
    <pubDate>Fri, 31 May 2013 21:15:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-05-31T21:15:41Z</dc:date>
    <item>
      <title>[resolved] Close the database connection on Job Error/fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352614#M118977</link>
      <description>Hi All,
&lt;BR /&gt; How to close the database connection in the Talend job on job erros. In our job we open a database connection with tMSSqlConnection and at the end of the job we close it. But if some thing goes wrong in the middle of the job, how to close the database connection? 
&lt;BR /&gt;Do talend job will close automatically on error/expcetion ?
&lt;BR /&gt;I can check on every component on component error and close the connection, but just wondering is there any easy way to close all connections on job exception/error.
&lt;BR /&gt;Thanks
&lt;BR /&gt;Ramesh</description>
      <pubDate>Fri, 31 May 2013 21:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352614#M118977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-31T21:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Close the database connection on Job Error/fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352615#M118978</link>
      <description>You can use the tPost component to do that.&lt;BR /&gt;tPost will always executed even if the job fails.&lt;BR /&gt;tPost -&amp;gt; OnComponentOK -&amp;gt; tMSSqlClose</description>
      <pubDate>Sat, 01 Jun 2013 13:32:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352615#M118978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-01T13:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Close the database connection on Job Error/fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352616#M118979</link>
      <description>Hi, &lt;BR /&gt;Add the reference &lt;A href="https://help.talend.com/search/all?query=tPostjob&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tPostjob&lt;/A&gt; and &lt;A href="https://help.talend.com/search/all?query=How+to+use+the+tPrejob+and+tPostjob+components&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;How to use the tPrejob and tPostjob components&lt;/A&gt; into forum. Hope it will be useful.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 03 Jun 2013 04:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352616#M118979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-03T04:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Close the database connection on Job Error/fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352617#M118980</link>
      <description>Thanks, 
&lt;BR /&gt; Yes, I am using the tPostJob to close the database connection, now it cleared my doubt that tPostJob will run even on job fail also. 
&lt;BR /&gt;And one more question is the tPostJob runs even if we check the checkbox (die on error) on any component? 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Ramesh</description>
      <pubDate>Mon, 03 Jun 2013 14:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352617#M118980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-03T14:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Close the database connection on Job Error/fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352618#M118981</link>
      <description>Hi, 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;And one more question is the tPostJob runs even if we check the checkbox (die on error) on any component?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;tPostJob and tPreJob can run even if checkout "die on error" on any component, because they are enforcement and can run under any situation in job . 
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 04 Jun 2013 03:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352618#M118981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-04T03:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Close the database connection on Job Error/fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352619#M118982</link>
      <description>Thank you verymuch Sabrina.
&lt;BR /&gt;Ramesh</description>
      <pubDate>Tue, 04 Jun 2013 14:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352619#M118982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-04T14:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Close the database connection on Job Error/fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352620#M118983</link>
      <description>Hi, &lt;BR /&gt;You are welcome, feel free post your issue on forum.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 05 Jun 2013 04:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352620#M118983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-05T04:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Close the database connection on Job Error/fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352621#M118984</link>
      <description>May I ask. what to put on code in dynamic settings for toracleclose component.&lt;BR /&gt;Thanks,&lt;BR /&gt;duffney</description>
      <pubDate>Wed, 09 Sep 2015 03:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352621#M118984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T03:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Close the database connection on Job Error/fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352622#M118985</link>
      <description>Hi duffney,
&lt;BR /&gt;Would you mind giving us more information about your issue? You want to use dynamic setting(Component List) in component toracleClose?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 09 Sep 2015 07:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352622#M118985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T07:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Close the database connection on Job Error/fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352623#M118986</link>
      <description>Good morning,
&lt;BR /&gt;can you please explain me the best practices for using tMSSQLConnection and tMSSQLCommit in ESB jobs, starting with tESBProviderRequest? I have the following doubts related to the topic above:
&lt;BR /&gt;tPostjob does not work in ESB jobs, it is never triggered. Neither, OnSubjobOk/Error is triggered from tESBProviderRequest. Instead, we use tLogCatcher to catch exceptions and we put tESBProviderFault there. So should we also close the connection there in case of failure? Will the connection remain open forever if we dont close it in this section, or will it recycle then the job is invoked by another request (so that it remains registered within the TalendESBJobFactory? If it remains open, what happends when the underlying network connection gets broken, will it reconnect?
&lt;BR /&gt;We use the following structure of the web services:
&lt;BR /&gt;tMSSQLConnection -- onSubJobOK --&amp;gt; tESBProviderRequest --&amp;gt; my logic --&amp;gt; tESBProviderResponse
&lt;BR /&gt;tLogCatcher --&amp;gt; tXMLMap --&amp;gt; tESBProviderFault or Response (depending on situation)
&lt;BR /&gt;The same for tRouteInput jobs.
&lt;BR /&gt;Thanks a lot. Michal
&lt;BR /&gt;P.S. I know this is a Talend DI section, but the question seems to be relevant to the topic to me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 19 Feb 2016 08:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Close-the-database-connection-on-Job-Error-fail/m-p/2352623#M118986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T08:53:18Z</dc:date>
    </item>
  </channel>
</rss>

