<?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 Try Catch openning MySQL Connections? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-Try-Catch-openning-MySQL-Connections/m-p/2311517#M82548</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as I know - you can not disable job dying&amp;nbsp;when a database&amp;nbsp;connection error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but you can manage this situation by run subjob:&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;in parent job you make a loop over you connection settings and pass them as parameters to the child job&lt;/LI&gt;
 &lt;LI&gt;you must have unchecked Die on error in tRunJob component&lt;/LI&gt;
 &lt;LI&gt;you can also control error code from subjob and log warnings if code not equal to 0&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 09:37:47 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2019-05-17T09:37:47Z</dc:date>
    <item>
      <title>How to Try Catch openning MySQL Connections?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Try-Catch-openning-MySQL-Connections/m-p/2311516#M82547</link>
      <description>&lt;P&gt;Hi, I have a job that gets N connectionStrings and opens a connection for each one, then get some data from them and create a Json file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My problem comes when I have two connectionStrings. If I don't have any problem with them works perfectly, but if the first connection fails, the job stops, and I need that the second connection does this job even if the first one fails.&lt;BR /&gt;&lt;BR /&gt;I attach a pic of my project.&lt;BR /&gt;&lt;BR /&gt;The javaFlex code is:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;At the begin:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;try {&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;In the end:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;} catch (Exception ex) {&lt;BR /&gt;System.out.println(ex.getLocalizedMessage());&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Try-Catch-openning-MySQL-Connections/m-p/2311516#M82547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Try Catch openning MySQL Connections?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Try-Catch-openning-MySQL-Connections/m-p/2311517#M82548</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as I know - you can not disable job dying&amp;nbsp;when a database&amp;nbsp;connection error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but you can manage this situation by run subjob:&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;in parent job you make a loop over you connection settings and pass them as parameters to the child job&lt;/LI&gt;
 &lt;LI&gt;you must have unchecked Die on error in tRunJob component&lt;/LI&gt;
 &lt;LI&gt;you can also control error code from subjob and log warnings if code not equal to 0&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 09:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Try-Catch-openning-MySQL-Connections/m-p/2311517#M82548</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-05-17T09:37:47Z</dc:date>
    </item>
  </channel>
</rss>

