<?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: Best Practices for managing database connections with Joblets in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Best-Practices-for-managing-database-connections-with-Joblets/m-p/2218284#M13537</link>
    <description>Thanks for this trick.&lt;BR /&gt;Sebastien</description>
    <pubDate>Wed, 28 Nov 2012 08:53:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-11-28T08:53:10Z</dc:date>
    <item>
      <title>Best Practices for managing database connections with Joblets</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Best-Practices-for-managing-database-connections-with-Joblets/m-p/2218282#M13535</link>
      <description>I've recently refactored part of an existing job into a Joblet (several tOracleInput components where included in the Joblet). When I did this, I noticed that there was a database connection component (tOracleConnection) that was not included inside the Joblet and it was still in the parent job. The Joblet worked fine though - it seems that the tOracleInput components inside the Joblet are still able to use the tOracelConnection object from the parent. However, when you look at these components the "Use Existing Connection" box is checked, but there is nothing in the component list (because the connection component does not exist inside the joblet). 
&lt;BR /&gt;It seems to me that it's a bad idea to have the connection component in the parent job, and then re-use that inside the joblet because there is no way to specify which connection component should be used. If a new job needs to re-use this joblet, and the new job contains more than one connection component, I think there will be unpredictable results - because the joblet would have no way of knowing which connection to use. 
&lt;BR /&gt;Has anyone else had a similar concern? If so, how would you recommend designing a Joblet? Would it be best to always include both the Connection component and the various "tOracleInput" components inside the same Joblet to avoid this confusion? Is there any advantage to using the connection in the parent job inside the Joblet? 
&lt;BR /&gt;Any thoughts or feedback is appreciated. 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Sat, 16 Nov 2024 13:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Best-Practices-for-managing-database-connections-with-Joblets/m-p/2218282#M13535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices for managing database connections with Joblets</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Best-Practices-for-managing-database-connections-with-Joblets/m-p/2218283#M13536</link>
      <description>Include a connection component in the joblet, just as you have done.
&lt;BR /&gt;In both the connection component in the parent, and in the joblet, check the "register a shared db connection" box
&lt;BR /&gt;In the parent job, and assign a value , like "CONN1" , "CONN2", etc, for each shared name.
&lt;BR /&gt;In the parent job, create a context variable context.SharedConnectionName. 
&lt;BR /&gt;In the joblet, use context.SharedConnectionName for the shared name. You do not have to setup a context in the joblet, as it inherits contexts automatically from the job that calls it.
&lt;BR /&gt;Before the joblet is called, set context.SharedConnectionName to the appropriate value in the parent job. 
&lt;BR /&gt;When the joblet runs, ir will be "synched up" with the parent to use the context.SharedConnectionName shared connection.
&lt;BR /&gt;
&lt;BR /&gt;Dave</description>
      <pubDate>Sun, 18 Dec 2011 05:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Best-Practices-for-managing-database-connections-with-Joblets/m-p/2218283#M13536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-18T05:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices for managing database connections with Joblets</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Best-Practices-for-managing-database-connections-with-Joblets/m-p/2218284#M13537</link>
      <description>Thanks for this trick.&lt;BR /&gt;Sebastien</description>
      <pubDate>Wed, 28 Nov 2012 08:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Best-Practices-for-managing-database-connections-with-Joblets/m-p/2218284#M13537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-28T08:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices for managing database connections with Joblets</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Best-Practices-for-managing-database-connections-with-Joblets/m-p/2218285#M13538</link>
      <description>Hi,&lt;BR /&gt;I'm trying to reproduce this issue but no way. Could you post some sample code or screenshots?&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 10 May 2013 07:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Best-Practices-for-managing-database-connections-with-Joblets/m-p/2218285#M13538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-10T07:49:21Z</dc:date>
    </item>
  </channel>
</rss>

