<?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: tMSSQLOutput using a datasource alias isn't working when deployed in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMSSQLOutput-using-a-datasource-alias-isn-t-working-when/m-p/2258267#M40119</link>
    <description>Hi,
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;I'm using Talend ESB 6.2.1 Enterprise Edition.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Have you already reported a ticket on talend support portal? Our colleagues from support team will check your issue to see if it is possible to give you a patch on it.&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
    <pubDate>Tue, 25 Oct 2016 09:10:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-25T09:10:08Z</dc:date>
    <item>
      <title>tMSSQLOutput using a datasource alias isn't working when deployed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSQLOutput-using-a-datasource-alias-isn-t-working-when/m-p/2258263#M40115</link>
      <description>Hello,
&lt;BR /&gt;I set up a pooled MS SQL Server datasource in the runtime following this tutorial : 
&lt;A href="https://help.talend.com/search/all?query=Using+datasources+and+connection+pooling+in+Talend+Runtime&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=Using+datasources+and+connection+pooling+in+Talend+Runtime&amp;amp;content-lang=en&lt;/A&gt;
&lt;BR /&gt;When I list the datasource in Karaf using "service:list Datasource", there are two datasources :
&lt;BR /&gt;
&lt;BR /&gt;----------------------
&lt;BR /&gt;&amp;nbsp;osgi.service.blueprint.compname = dataSource
&lt;BR /&gt;&amp;nbsp;org.talend.esb.datasource.name = ds-derby
&lt;BR /&gt;&amp;nbsp;osgi.jndi.service.name = jdbc/sam
&lt;BR /&gt;&amp;nbsp;service.id = 359
&lt;BR /&gt;&amp;nbsp;service.bundleid = 379
&lt;BR /&gt;&amp;nbsp;service.scope = bundle
&lt;BR /&gt;Provided by :
&lt;BR /&gt;&amp;nbsp;Talend ESB :: SAM :: Datasource :: Derby (379)
&lt;BR /&gt;Used by:
&lt;BR /&gt;&amp;nbsp;Talend ESB :: SAM :: Server (425)
&lt;BR /&gt;&amp;nbsp;Talend ESB :: SAM :: REST Service (427)
&lt;BR /&gt;&amp;nbsp;Talend ESB :: SAM :: SOAP Service (428)
&lt;BR /&gt;
&lt;BR /&gt;----------------------
&lt;BR /&gt;&amp;nbsp;osgi.service.blueprint.compname = dataSource
&lt;BR /&gt;&amp;nbsp;org.talend.esb.datasource.name = ds-sqlserver
&lt;BR /&gt;&amp;nbsp;osgi.jndi.service.name = jdbc/sam
&lt;BR /&gt;&amp;nbsp;service.id = 454
&lt;BR /&gt;&amp;nbsp;service.bundleid = 556
&lt;BR /&gt;&amp;nbsp;service.scope = bundle
&lt;BR /&gt;Provided by :
&lt;BR /&gt;&amp;nbsp;Talend ESB :: SAM :: Datasource :: SQLServer (556)
&lt;BR /&gt;As you can notice, the two datasources have the same value for the property "osgi.jndi.service.name".
&lt;BR /&gt;I created a route calling a job through a cTalendJob component. The job transform the message and store data in a SQL Server database. In the tMSSQLOutput, I set the datasource alias to "ds-sqlserver".
&lt;BR /&gt;When I try to publish and deploy the route in the runtime, the job isn't working.
&lt;BR /&gt;I had a look to the job's blueprint.xml file and I found that :
&lt;BR /&gt;&amp;lt;property name="dataSources"&amp;gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;map&amp;gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;entry key="ds-sqlserver"&amp;gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;reference interface="javax.sql.DataSource" filter="(
&lt;B&gt;osgi.jndi.service.name=ds-sqlserver&lt;/B&gt;)" /&amp;gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/entry&amp;gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/map&amp;gt;
&lt;BR /&gt;&amp;lt;/property&amp;gt;
&lt;BR /&gt;This can't work as there are two services with the same JNDI service name (jdbc/sam) and none with "ds-sqlserver". If I change the filter to "(org.talend.esb.datasource.name=ds-sqlserver)", it works.
&lt;BR /&gt;How can I configure this filter in Talend Studio? Or can I change the JNDI Service Name of the bundle "Talend ESB :: SAM :: Datasource :: SQLServer" through Karaf?
&lt;BR /&gt;I don't want to change the blueprint.xml of my job every time I deploy the route.
&lt;BR /&gt;Thank you.</description>
      <pubDate>Sat, 16 Nov 2024 10:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSQLOutput-using-a-datasource-alias-isn-t-working-when/m-p/2258263#M40115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSQLOutput using a datasource alias isn't working when deployed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSQLOutput-using-a-datasource-alias-isn-t-working-when/m-p/2258264#M40116</link>
      <description>Hi,&lt;BR /&gt;Could you please indicate what's the build version you are using? 6.2.1?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 13 Oct 2016 07:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSQLOutput-using-a-datasource-alias-isn-t-working-when/m-p/2258264#M40116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-13T07:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSQLOutput using a datasource alias isn't working when deployed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSQLOutput-using-a-datasource-alias-isn-t-working-when/m-p/2258265#M40117</link>
      <description>Hi Sabrina,
&lt;BR /&gt;I'm using Talend ESB 6.2.1 Enterprise Edition.
&lt;BR /&gt;Best regards,
&lt;BR /&gt;Loïc</description>
      <pubDate>Thu, 13 Oct 2016 08:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSQLOutput-using-a-datasource-alias-isn-t-working-when/m-p/2258265#M40117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-13T08:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSQLOutput using a datasource alias isn't working when deployed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSQLOutput-using-a-datasource-alias-isn-t-working-when/m-p/2258266#M40118</link>
      <description>I found a workaround but it's clearly ugly. If I configure the datasource alias with the value "jdbc/sam)(org.talend.esb.datasource.name=ds-sqlserver", it works 
&lt;BR /&gt;In the blueprint\job.xml, the datasource appears like this : 
&lt;BR /&gt;&amp;lt;entry key="jdbc/sam)(org.talend.esb.datasource.name=ds-sqlserver"&amp;gt; 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;reference interface="javax.sql.DataSource" filter=" 
&lt;B&gt;(osgi.jndi.service.name=jdbc/sam)(org.talend.esb.datasource.name=ds-sqlserver)&lt;/B&gt;" /&amp;gt; 
&lt;BR /&gt;&amp;lt;/entry&amp;gt; 
&lt;BR /&gt;IMHO, it's a workaround and not a real solution. There is an existing JIRA asking for a property "osgi.jndi.service.name" configurable outside the bundle : 
&lt;A href="https://jira.talendforge.org/browse/TESB-7671" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TESB-7671&lt;/A&gt; 
&lt;BR /&gt;Do you know if you can resolve this JIRA in a future release? 
&lt;BR /&gt;Thank you.</description>
      <pubDate>Thu, 13 Oct 2016 15:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSQLOutput-using-a-datasource-alias-isn-t-working-when/m-p/2258266#M40118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-13T15:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSQLOutput using a datasource alias isn't working when deployed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSQLOutput-using-a-datasource-alias-isn-t-working-when/m-p/2258267#M40119</link>
      <description>Hi,
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;I'm using Talend ESB 6.2.1 Enterprise Edition.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Have you already reported a ticket on talend support portal? Our colleagues from support team will check your issue to see if it is possible to give you a patch on it.&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 25 Oct 2016 09:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSQLOutput-using-a-datasource-alias-isn-t-working-when/m-p/2258267#M40119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-25T09:10:08Z</dc:date>
    </item>
  </channel>
</rss>

