<?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: Lost persistent connection to database (MSSQL) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320399#M90545</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPbUAAW"&gt;@spot62&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you please share your current job flow? Are your trying to have a single DB connection for multiple calls of same job? Or are you trying to retain the DB connection throughout single execution of a job flow?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If the case is second, you can very well use the Connection component to share the DB connection throughout various other DB components.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But if you are trying to use a single connection for multiple calls of same job, it is not a recommended way. You will have to call DB every time you are doing a job call.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;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 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2019 14:38:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-27T14:38:33Z</dc:date>
    <item>
      <title>Lost persistent connection to database (MSSQL)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320398#M90544</link>
      <description>&lt;P&gt;I have a Talend Job with typical path tRESTRequest -&amp;gt; tMsSQLRow-&amp;gt;tRESTResponse&lt;BR /&gt;The tMsSQLRow use a persistent connection by tMsSQLConnection&lt;BR /&gt;How restore lost connection for Talend Open Studio for this typical job scenario?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;possible сommunity solutions&lt;/SPAN&gt;&lt;/SPAN&gt;:&lt;BR /&gt;1) external tLoop "supervisor" job for subjob with tRESTRequest -&amp;gt; tMsSQLRow-&amp;gt;tRESTResponse&amp;nbsp;&lt;BR /&gt;But how to cancel this subjob? tDie and other community solutions not working with tRESTRequest -&amp;gt; ...-&amp;gt;tRESTResponse services. &lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Not working solution.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;2)&amp;nbsp; a tJava reconnect code as &lt;A href="https://community.qlik.com/s/feed/0D53p00007vCnRJCA0" target="_self"&gt;https://community.talend.com/t5/Design-and-Development/Is-there-a-way-to-reconnect-to-a-database/td-p/23063&lt;/A&gt;&lt;BR /&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;But this code make reconnect for each request after first reconnect ( or generate exceptions). If this code located between tRESTRequest -&amp;gt; ...-&amp;gt;tRESTResponse in same job with it.&lt;BR /&gt;The print debugging says, what internal data of Talend code contain a two (or more) connection: global losted (for tMsSQLConnection) and normal for curent request context. But normal connection is lost immediately after request. Half working solution.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;3) Possible using runtime connection pool &lt;A href="https://community.qlik.com/s/feed/0D53p00007vCrFDCA0" target="_blank" rel="noopener"&gt;https://community.talend.com/t5/Design-and-Development/Connection-pooling/m-p/114417?collapse_discussion=true&amp;amp;q=lost%20connection&amp;amp;search_type=thread&lt;/A&gt;&lt;BR /&gt;Ok. But this solution for deployment in Karaf etc.&lt;BR /&gt;&lt;BR /&gt;I needed solution in how to implement repair losted db connection in Talend Open Studio for REST-like services.&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320398#M90544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lost persistent connection to database (MSSQL)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320399#M90545</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPbUAAW"&gt;@spot62&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you please share your current job flow? Are your trying to have a single DB connection for multiple calls of same job? Or are you trying to retain the DB connection throughout single execution of a job flow?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If the case is second, you can very well use the Connection component to share the DB connection throughout various other DB components.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But if you are trying to use a single connection for multiple calls of same job, it is not a recommended way. You will have to call DB every time you are doing a job call.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;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 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 14:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320399#M90545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-27T14:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lost persistent connection to database (MSSQL)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320400#M90546</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="current job" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4vT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143467i4378E88CC86B58B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4vT.png" alt="0683p000009M4vT.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;current job&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;This is my experimental job. tMSSqlConnection is a persistent connection, its must restored after down/up link to my MSSQL server. But not do it. How I can use Talend OS to restore tMSSqlConnection connection after down and up network link to my db host (this is simulate network problems), for example?&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 14:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320400#M90546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-27T14:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lost persistent connection to database (MSSQL)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320401#M90547</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;If my understanding about your query is right, you are trying to automatically reconnect the DB connection even if there is a DB outage in between due to any network issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;But if the DB connection is cut off while doing the data processing, you will not be able to reconnect automatically and process the job. In this case, you should provide a Fault response back to the request with necessary error message.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Once the connection is established between Talend and DB, it is the duty of network and DB to give sufficient support to make sure that connection is retained unless it is closed by Talend process. So if there is not enough network or DB bandwidth, Talend job will (and should) error out and error response needs to be transmitted back.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;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 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 17:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320401#M90547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-27T17:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Lost persistent connection to database (MSSQL)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320402#M90548</link>
      <description>&lt;P&gt;Yes. Where the connection is lost, the service will return an error.&lt;BR /&gt;But at connection between Talend host and DB host is established, Talend is not reestablish connection to DB, and the service will continue to return an error.&lt;/P&gt;&lt;P&gt;Those this job will work until the first network failure.&lt;/P&gt;&lt;P&gt;&amp;gt; connection is retained unless it is closed by Talend process...&lt;/P&gt;&lt;P&gt;No. tMSSqLConnection component is not saved current connection and will not restore it (although it should) after any infrastructure problems.&lt;/P&gt;&lt;P&gt;This is a very serious problem, because for reliability the service must establish a connection with the database every time. This is reduces service performance.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My primary question - how restore tMSSqLConnection connection after DB link established? Or typical Job template for this.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 20:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320402#M90548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-27T20:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lost persistent connection to database (MSSQL)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320403#M90549</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The Talend DB connection component will not poll for the re-connectivity to DB in case of failure. If needed, the polling has to be created based on the error value and then using a parent job, you will have to send a new connection request to DB.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;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 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 20:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320403#M90549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-27T20:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lost persistent connection to database (MSSQL)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320404#M90550</link>
      <description>&lt;P&gt;Ок. How me do it?&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 07:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320404#M90550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-28T07:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lost persistent connection to database (MSSQL)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320405#M90551</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;In case your job is failing, you will have to raise a tDie with a specific error code. You need to create a parent job where it will poll the return code and if it is database specific code, you will have to make the call to child job again.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;But my preference will be to strengthen the network and DB layer for avoiding these type of issues rather than creating overhead on application code.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;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 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 15:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320405#M90551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-28T15:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lost persistent connection to database (MSSQL)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320406#M90552</link>
      <description>&lt;P&gt;tDie component is not terminate job, if this job contain tRestRequest/tRestResponse components. See start topic message 1)&lt;BR /&gt;Parent job will be in infinite waiting&lt;BR /&gt;&lt;BR /&gt;&amp;gt; But my preference will be to strengthen the network and DB layer for avoiding these type of issues rather than creating overhead on application code.&lt;BR /&gt;&lt;BR /&gt;No things work absolutely reliably.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 15:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lost-persistent-connection-to-database-MSSQL/m-p/2320406#M90552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-28T15:23:14Z</dc:date>
    </item>
  </channel>
</rss>

