<?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: Shared DB Connection in JobLets in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298585#M71028</link>
    <description>&lt;P&gt;You are neither able to connect the tOracleConnection to the tFlowToIterate nor any other components in the joblet. Sorry for the lag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2017 13:10:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-27T13:10:50Z</dc:date>
    <item>
      <title>Shared DB Connection in JobLets</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298579#M71022</link>
      <description>&lt;P&gt;Hi Talend Community,&lt;/P&gt; 
&lt;P&gt;I've got one simple question. Our job definitions are based on joblets in order to make some logic reusable. Some of the joblets are doing extractions from a database. Since the parent job may initiate a database connection on its own all the included jobs should use the connection instead to create a new one --&amp;gt; We want to overcome some performance issues.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;That's the theory!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is one of these db extraction joblets:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joblet_1.PNG" style="width: 782px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrSm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140341i71C4E0A9A74B7AE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrSm.png" alt="0683p000009LrSm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Its very straight! You get a parameter (a "WHERE" condition) use the shared connection in the &lt;EM&gt;sql_e_skp_firma&amp;nbsp;&lt;/EM&gt;and execute it in order to provide the fetched output. Easy!&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;One of the main unclear things is, where I can place&amp;nbsp;properly &lt;EM&gt;tOracleConnection_1 (db_src_avsc_repo)&lt;/EM&gt;? Right now I am not sure how to connect it within the joblet correctly. In a normal job (the parent Job) I'm using the tPreJob to establish the connection I need as shared connection.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job_1.PNG" style="width: 835px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrSr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155338i186D0D81F8694562/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrSr.png" alt="0683p000009LrSr.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Is there something analogous to the tPreJob in context of joblets?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks and best regards from Germany&lt;/P&gt; 
&lt;P&gt;Adam L.&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 15:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298579#M71022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-19T15:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Shared DB Connection in JobLets</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298580#M71023</link>
      <description>&lt;P&gt;Include a connection component in the joblet,&amp;nbsp; just as you have done.&lt;/P&gt;
&lt;P&gt;In both the connection component in the parent, and in the joblet, check the "register a shared db connection" box&lt;/P&gt;
&lt;P&gt;In the parent&amp;nbsp; job, and assign a value , like "CONN1" , "CONN2", etc, for each shared name.&lt;/P&gt;
&lt;P&gt;In the parent job, create a context variable context.SharedConnectionName.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the joblet, use context.SharedConnectionName for the shared name.&amp;nbsp; You do not have to setup a context in the joblet, as it inherits contexts automatically from the job that calls it.&lt;/P&gt;
&lt;P&gt;Before the joblet is called, set context.SharedConnectionName to the appropriate value in the parent job.&lt;/P&gt;
&lt;P&gt;When the joblet runs, ir will be "synched up" with the parent to use the context.SharedConnectionName shared connection.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 21:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298580#M71023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-19T21:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Shared DB Connection in JobLets</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298581#M71024</link>
      <description>&lt;P&gt;Hi talend_guru,&lt;/P&gt; 
  &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
  &lt;P&gt;I tried out your suggested recipe. Before I start some screenshots:&lt;/P&gt; 
  &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
  &lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrV2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136624i515FE7A3872B0F75/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrV2.png" alt="0683p000009LrV2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
  &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
  &lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrUt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144279i123DD1C6FC7DF4DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrUt.png" alt="0683p000009LrUt.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
  &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
  &lt;P&gt;The &lt;EM&gt;tOracleConnection_1&amp;nbsp;&lt;/EM&gt;in the joblet uses the "&lt;EM&gt;context.shared_connection&lt;/EM&gt;" value. The tOracleInput1 references the tOracleConnection_1.&lt;/P&gt; 
  &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
  &lt;P&gt;&lt;STRONG&gt;The logs bring some interessting entries:&lt;/STRONG&gt;&lt;/P&gt; 
  &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;BR /&gt;&lt;BR /&gt;To see the whole post, download it &lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009MdFS"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009MdFS"&gt;OriginalPost.pdf&lt;/A&gt;</description>
      <pubDate>Mon, 23 Oct 2017 15:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298581#M71024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-23T15:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Shared DB Connection in JobLets</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298582#M71025</link>
      <description>&lt;P&gt;You don't need tOracleConnection again. You can directly get the shared connection in tOracleInput.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 16:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298582#M71025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-23T16:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Shared DB Connection in JobLets</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298583#M71026</link>
      <description>&lt;P&gt;Hi talend_guru,&lt;/P&gt; 
&lt;P&gt;don't think that I can do it. The tOracleInput (with&amp;nbsp;&lt;EM&gt;Use an existing connection&amp;nbsp;&lt;/EM&gt;checked) demands a selected Connection component in the&amp;nbsp;&lt;EM&gt;Component List&lt;/EM&gt;. I highlighted the mentioned property in the screenshot.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joblet_db_connect.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrVl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155583i691028DBFC089AC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrVl.png" alt="0683p000009LrVl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any ohter suggestions &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 07:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298583#M71026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-24T07:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Shared DB Connection in JobLets</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298584#M71027</link>
      <description>&lt;P&gt;Use OnSubjobok on tOracleConnection component and connect to tFlowtoIterate component. That should take care of it.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 15:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298584#M71027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-24T15:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Shared DB Connection in JobLets</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298585#M71028</link>
      <description>&lt;P&gt;You are neither able to connect the tOracleConnection to the tFlowToIterate nor any other components in the joblet. Sorry for the lag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 13:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298585#M71028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-27T13:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Shared DB Connection in JobLets</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298586#M71029</link>
      <description>&lt;P&gt;For those who else use such an design I've got an solution (thanks to talend support):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Delete in dhe Joblet the "tOracleConnection" (the tOracleInput will start to show erros).&lt;/LI&gt;&lt;LI&gt;In the tOracleInput jump in the "Dynamic settings" section&lt;/LI&gt;&lt;LI&gt;Add a new entry: Name:&amp;nbsp;&lt;EM&gt;Component List&amp;nbsp;&lt;/EM&gt;and Value &lt;EM&gt;tOracleConnection_1&amp;nbsp;&lt;/EM&gt;(Equals the name of your connection created in the parent job).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;That's it. Even the tOracleInput is still decorated with an error you the Job does it as it should. I could confirm it with the trace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 06:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Shared-DB-Connection-in-JobLets/m-p/2298586#M71029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-30T06:59:12Z</dc:date>
    </item>
  </channel>
</rss>

