<?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 pass a database connection to a routine? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-database-connection-to-a-routine/m-p/2221720#M15602</link>
    <description>Hi Lalaina,&lt;BR /&gt;Would you mind attaching your job design screenshots into forum?&lt;BR /&gt;Feel free to let us know if there is any problem to upload screenshot.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
    <pubDate>Wed, 16 Sep 2015 04:39:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-16T04:39:14Z</dc:date>
    <item>
      <title>How to pass a database connection to a routine?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-database-connection-to-a-routine/m-p/2221716#M15598</link>
      <description>Hi,
&lt;BR /&gt;I would like to make a java routine that takes a database connection as a parameter.
&lt;BR /&gt;How can I do that?
&lt;BR /&gt;Sebastien</description>
      <pubDate>Mon, 09 Dec 2013 09:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-database-connection-to-a-routine/m-p/2221716#M15598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-09T09:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a database connection to a routine?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-database-connection-to-a-routine/m-p/2221717#M15599</link>
      <description>Hi Sebastien 
&lt;BR /&gt;Use a txxxxConnection such as tMysqlConenction to create a DB connection in the job, and the pass this connection as a paramater to the routine like this: 
&lt;BR /&gt; 
&lt;PRE&gt;YourRoutineName.methodName((java.sql.Connection) globalMap&lt;BR /&gt;						.get("conn_tMysqlConnection_1"))&lt;/PRE&gt; 
&lt;BR /&gt;The routine is defined as below, for example: 
&lt;BR /&gt; 
&lt;PRE&gt;  public static void methodName(java.sql.Connection parameterName) {&lt;BR /&gt;        java.sql.Connection conn=parameterName;&lt;BR /&gt;       ...&lt;BR /&gt;    }&lt;/PRE&gt; 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 09 Dec 2013 09:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-database-connection-to-a-routine/m-p/2221717#M15599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-09T09:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a database connection to a routine?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-database-connection-to-a-routine/m-p/2221718#M15600</link>
      <description>Hello,&lt;BR /&gt;I would like to create a routine which would call a database stored function. Then I would use the routine in a tMap.&lt;BR /&gt;I have written the routine but the performance is very poor as a jdbc database connection is created for every call to the routine. I am aware about connection pooling in J2EE &amp;nbsp;but do not know how to achieve that in Talend&lt;BR /&gt;What would be the best strategy to speed up the stored procedure call ?&lt;BR /&gt;Thanks for your ideas.&lt;BR /&gt;Lalaina</description>
      <pubDate>Sun, 31 Aug 2014 17:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-database-connection-to-a-routine/m-p/2221718#M15600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-31T17:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a database connection to a routine?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-database-connection-to-a-routine/m-p/2221719#M15601</link>
      <description>Hi Irako,
&lt;BR /&gt;it is not necessary to create a Connection for every record. This is a problem of your job design and not an issue of the solution shong provided. You could post your job design as screenshot, so we could make some suggestions.&amp;nbsp;</description>
      <pubDate>Mon, 01 Sep 2014 19:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-database-connection-to-a-routine/m-p/2221719#M15601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-01T19:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a database connection to a routine?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-database-connection-to-a-routine/m-p/2221720#M15602</link>
      <description>Hi Lalaina,&lt;BR /&gt;Would you mind attaching your job design screenshots into forum?&lt;BR /&gt;Feel free to let us know if there is any problem to upload screenshot.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 16 Sep 2015 04:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-database-connection-to-a-routine/m-p/2221720#M15602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-16T04:39:14Z</dc:date>
    </item>
  </channel>
</rss>

