<?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 Deploying Service using Datasource via TAC in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Deploying-Service-using-Datasource-via-TAC/m-p/2313293#M143536</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a simple service, that will write rows in a Database (Microsoft SQL Server). &lt;/P&gt;&lt;P&gt;To run it in talend runtime I installed the microsoft jdbc drivers and defined a datasource in the runtime. (See &lt;A href="https://help.talend.com/reader/T7hdMN16K129AtayaQluAA/hYXPpRqbRueFk0F49kCBBg" target="_blank"&gt;https://help.talend.com/reader/T7hdMN16K129AtayaQluAA/hYXPpRqbRueFk0F49kCBBg&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the documentation, the datasources name should be ds-sqlserver, but the name of the datasource differs from that in the documentation. It's SAM. I wonder if there is a mistake or if something changed that is not documented?&lt;/P&gt;&lt;P&gt;Queries like "&lt;/P&gt;&lt;P&gt;jdbc:query jdbc/sam&amp;nbsp;&lt;/P&gt;&lt;P&gt;"select ..."" work and return correct data from my database. &lt;/P&gt;  &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the database component I checked "use datasource" and filled in the name jdbc/sam. &lt;/P&gt;&lt;P&gt;I did not remove &lt;/P&gt; connection data (host/user/password etc.) they were filled with context variables.   Then I tried to deploy my servers with the esb-conductor.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The deployment worked but the service is not using my datasource. It's using the values from context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried to clear the connection-data in the db-component. Deployment was possible, but the service produces "500 - Server error".  The last thing I tried was to change the jdbc-provider in the db-component from "open source JTDS" to "microsoft". This ended in a deployment failure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried the same with my openStudio. I installed a datasource (postgresql) and again it's name was sam. I deployed my service in the deployment folder and everything worked as expected. It ignores the connection data filled in the db-componet and uses datasource jdbc/sam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the right way to deploy a service with the ESB-conductor? Why is the name of every newly installed datasource sam?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;P&gt;anna.talend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:02:01 GMT</pubDate>
    <dc:creator>anna_talend</dc:creator>
    <dc:date>2024-11-16T01:02:01Z</dc:date>
    <item>
      <title>Deploying Service using Datasource via TAC</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Deploying-Service-using-Datasource-via-TAC/m-p/2313293#M143536</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a simple service, that will write rows in a Database (Microsoft SQL Server). &lt;/P&gt;&lt;P&gt;To run it in talend runtime I installed the microsoft jdbc drivers and defined a datasource in the runtime. (See &lt;A href="https://help.talend.com/reader/T7hdMN16K129AtayaQluAA/hYXPpRqbRueFk0F49kCBBg" target="_blank"&gt;https://help.talend.com/reader/T7hdMN16K129AtayaQluAA/hYXPpRqbRueFk0F49kCBBg&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the documentation, the datasources name should be ds-sqlserver, but the name of the datasource differs from that in the documentation. It's SAM. I wonder if there is a mistake or if something changed that is not documented?&lt;/P&gt;&lt;P&gt;Queries like "&lt;/P&gt;&lt;P&gt;jdbc:query jdbc/sam&amp;nbsp;&lt;/P&gt;&lt;P&gt;"select ..."" work and return correct data from my database. &lt;/P&gt;  &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the database component I checked "use datasource" and filled in the name jdbc/sam. &lt;/P&gt;&lt;P&gt;I did not remove &lt;/P&gt; connection data (host/user/password etc.) they were filled with context variables.   Then I tried to deploy my servers with the esb-conductor.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The deployment worked but the service is not using my datasource. It's using the values from context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried to clear the connection-data in the db-component. Deployment was possible, but the service produces "500 - Server error".  The last thing I tried was to change the jdbc-provider in the db-component from "open source JTDS" to "microsoft". This ended in a deployment failure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried the same with my openStudio. I installed a datasource (postgresql) and again it's name was sam. I deployed my service in the deployment folder and everything worked as expected. It ignores the connection data filled in the db-componet and uses datasource jdbc/sam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the right way to deploy a service with the ESB-conductor? Why is the name of every newly installed datasource sam?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;P&gt;anna.talend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Deploying-Service-using-Datasource-via-TAC/m-p/2313293#M143536</guid>
      <dc:creator>anna_talend</dc:creator>
      <dc:date>2024-11-16T01:02:01Z</dc:date>
    </item>
  </channel>
</rss>

