<?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: [resolved] Dynamic data source in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276654#M52672</link>
    <description>Data Source alias defined in blueprint thats why cannot configure usual way using context/variable.</description>
    <pubDate>Thu, 18 Feb 2016 06:06:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-18T06:06:44Z</dc:date>
    <item>
      <title>[resolved] Dynamic data source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276651#M52669</link>
      <description>Hi,
&lt;BR /&gt;I have followed this post: &amp;nbsp;
&lt;A href="http://stackoverflow.com/questions/30363304/how-can-i-install-postgresqljdbc-to-work-in-karaf-osgi" target="_blank" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/30363304/how-can-i-install-postgresqljdbc-to-work-in-karaf-osgi&lt;/A&gt;
&lt;BR /&gt;and setup a data source properly, however, I found there are some issues when I try to use dynamic data source in my job.
&lt;BR /&gt;Here is the scenario:&amp;nbsp;
&lt;BR /&gt;I have a Route (cHTTP) which calls one Talend job based on certain input parameter. In this Talend job, it loads data source alias based on input parameters from a property file. Of course, there are a set of data source alias are configured in this property file and it could be changed anytime as long as data source is configured in Runtime.&amp;nbsp;
&lt;BR /&gt;However, I found if "Data Source alias" field in tPostgresqlConnection has to be configured with a fixed value, otherwise Route job will give me ClassNotFound exception which shows Route cannot find my Talend job class. (I am using TOS 6.0)
&lt;BR /&gt;If tPostgresqlConnection cannot use dynamic data source setting, can I fetch data sources &amp;nbsp;which are available in Karaf container and how to do it?</description>
      <pubDate>Sat, 16 Nov 2024 10:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276651#M52669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Dynamic data source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276652#M52670</link>
      <description>Hi,
&lt;BR /&gt;Could you please paste the post you followed up into forum directly?
&lt;BR /&gt;We can not check the url you posted.
&lt;BR /&gt;In addition, what's the ESB build version you are using?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 18 Feb 2016 05:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276652#M52670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-18T05:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Dynamic data source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276653#M52671</link>
      <description>Hi&amp;nbsp;Sabrina, 
&lt;BR /&gt;The post is steps to config a postgresql data source in Talend Runtime by executing below Karaf shell scripts: 
&lt;BR /&gt; 
&lt;PRE&gt;karaf@root()&amp;gt; feature:repo-add mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.7.0/xml/features&lt;BR /&gt;karaf@root()&amp;gt;feature:install &amp;nbsp;pax-jdbc-spec&lt;BR /&gt;karaf@root()&amp;gt;feature:install transaction&lt;BR /&gt;karaf@root()&amp;gt;bundle:install -s mvn:org.postgresql/postgresql/9.4-1200-jdbc41&lt;BR /&gt;karaf@root()&amp;gt; service:list org.osgi.service.jdbc.DataSourceFactory&lt;BR /&gt;karaf@root()&amp;gt;feature:install &amp;nbsp;pax-jdbc-config&lt;BR /&gt;karaf@root()&amp;gt;feature:install &amp;nbsp;pax-jdbc-pool-dbcp2&lt;BR /&gt;Then create a cfg file to give all database setup under KARAF_HOME/etc/org.ops4j.datasource-companymanager.cfg &lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;After all steps, i can see my datasources: 
&lt;BR /&gt; 
&lt;PRE&gt;karaf@trun()&amp;gt; service:list javax.sql.DataSource&lt;BR /&gt;&lt;BR /&gt;----------------------&lt;BR /&gt; databaseName = MobileCRM&lt;BR /&gt; dataSourceName = MobileCRMDS&lt;BR /&gt; felix.fileinstall.filename = file:/var/ESBSE/container/etc/org.ops4j.datasource-MobileCRMDS.cfg&lt;BR /&gt; osgi.jdbc.driver.name = PostgreSQL JDBC Driver-pool-xa&lt;BR /&gt; osgi.jndi.service.name = MobileCRMDS&lt;BR /&gt; password = mobilecrmuser&lt;BR /&gt; portNumber = 5432&lt;BR /&gt; serverName = 192.168.100.121&lt;BR /&gt; service.factoryPid = org.ops4j.datasource&lt;BR /&gt; service.pid = org.ops4j.datasource.1bfab764-f3e3-4a3d-a1f8-fcc56774aa6a&lt;BR /&gt; user = mobilecrmuser&lt;BR /&gt; service.id = 605&lt;BR /&gt; service.bundleid = 306&lt;BR /&gt; service.scope = singleton&lt;BR /&gt;Provided by :&lt;BR /&gt; OPS4J Pax JDBC Config (306)&lt;BR /&gt;&lt;BR /&gt;----------------------&lt;BR /&gt; databaseName = WeChat&lt;BR /&gt; dataSourceName = WeChatDS&lt;BR /&gt; felix.fileinstall.filename = file:/var/ESBSE/container/etc/org.ops4j.datasource-WeChatDS.cfg&lt;BR /&gt; osgi.jdbc.driver.name = PostgreSQL JDBC Driver-pool-xa&lt;BR /&gt; osgi.jndi.service.name = WeChatDS&lt;BR /&gt; password = postgres&lt;BR /&gt; portNumber = 5432&lt;BR /&gt; serverName = 192.168.100.121&lt;BR /&gt; service.factoryPid = org.ops4j.datasource&lt;BR /&gt; service.pid = org.ops4j.datasource.a34df05b-a4d3-452a-8a54-6bd964669a25&lt;BR /&gt; user = postgres&lt;BR /&gt; service.id = 606&lt;BR /&gt; service.bundleid = 306&lt;BR /&gt; service.scope = singleton&lt;BR /&gt;Provided by :&lt;BR /&gt; OPS4J Pax JDBC Config (306)&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;And I am working on TOS 6.0 community.</description>
      <pubDate>Thu, 18 Feb 2016 05:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276653#M52671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-18T05:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Dynamic data source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276654#M52672</link>
      <description>Data Source alias defined in blueprint thats why cannot configure usual way using context/variable.</description>
      <pubDate>Thu, 18 Feb 2016 06:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276654#M52672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-18T06:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Dynamic data source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276655#M52673</link>
      <description>Hi aLeXx 
&lt;BR /&gt;I am not getting you.... 
&lt;BR /&gt;Data source alias is defined in blueprint, that is correct. This is how to define a data source, isn't? 
&lt;BR /&gt;But I am trying to access data source from my talend job's tpostgresqlconnection with a dynamic data source name (refer to a String variable), which gives me exceptions in Runtime. 
&lt;BR /&gt;And even I set Data source alias field in tpostgresqlconnection with simple string operation:&amp;nbsp;" 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;MobileCRM"+"DS&lt;/FONT&gt;&lt;/FONT&gt;" , same ClassNotFind exception occurred.</description>
      <pubDate>Thu, 18 Feb 2016 06:32:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276655#M52673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-18T06:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Dynamic data source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276656#M52674</link>
      <description>Resolved with walk around approach:&amp;nbsp;&lt;A href="https://www.talendforge.org/forum/viewtopic.php?pid=178256#p178256" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/forum/viewtopic.php?pid=178256#p178256&lt;/A&gt;</description>
      <pubDate>Sat, 20 Feb 2016 05:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276656#M52674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-20T05:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Dynamic data source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276657#M52675</link>
      <description>Hi&amp;nbsp;seanzhang1212, 
&lt;BR /&gt;The link you put in is not working. Do you remember what the fix was. I currently have the same issue and only a static value is currently being accepted. If I set a context variable or a globalMap it is using the same for datasource lookup instead of the value.&amp;nbsp; 
&lt;BR /&gt;I have 3 oracle data sources setup. The incoming payload has the data source name and so want the data source alias to be set dynamically based on the incoming value.&amp;nbsp; 
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 13 Jul 2016 20:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Dynamic-data-source/m-p/2276657#M52675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-13T20:03:21Z</dc:date>
    </item>
  </channel>
</rss>

