<?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 Talend ESB Route and Context Variables or Property Placeholders in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-Route-and-Context-Variables-or-Property-Placeholders/m-p/2231112#M21517</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am using Talend ESB, and have been using context variables (with &lt;EM&gt;implicit context load from file&lt;/EM&gt;) in &lt;STRONG&gt;data integration&lt;/STRONG&gt; jobs. Now I have created a &lt;STRONG&gt;route&lt;/STRONG&gt; to read from RabbitMQ. However, implicit load of context variables does not work.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the route, I am trying to set the RabbitMQ connection string dynamically, so that I will be able to pass the host, vhost, port, user, password loaded from a file (in the same way I pass connection parameters to MS SQL Server in the data integration jobs).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to construct the connection string as follows:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;"rabbitmq://" + context.RabbitMQ_Host + ":" + context.RabbitMQ_Port + "/DataExchange?vhost=" + context.RabbitMQ_VHost +"&amp;amp;exchangeType=topic&amp;amp;autoDelete=false&amp;amp;queue=Submitted_Record&amp;amp;username="+context.RabbitMQ_User + "&amp;amp;password=" + context.RabbitMQ_Password&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The issue is that implicit load of context variables does not work in routes for some reason. (Note that when I set the value of these context parameters hardcoded in Talend, it works).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;After searching it seems that I have two options:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) using a &lt;STRONG&gt;route_name.cfg&lt;/STRONG&gt;&amp;nbsp;file in the &lt;STRONG&gt;MyDrive:\TOS_ESB-20200219_1130-V7.3.1\Runtime_ESBSE\container\etc&lt;/STRONG&gt; folder - I tried this but the parameters are not being picked up when I run the job for some reason&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2) using&amp;nbsp;&lt;STRONG&gt;property placeholders&lt;/STRONG&gt; and modifying the Spring XML to load values from a file and use them at runtime&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have also found links to what others said was a very useful post (&lt;A href="https://edwardost.github.io/cloud/platform/soa/2015/05/14/Working-with-Property-Placeholders-in-Talend-ESB/" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://edwardost.github.io/cloud/platform/soa/2015/05/14/Working-with-Property-Placeholders-in-Talend-ESB/&lt;/A&gt;) but this seems to have been removed unfortunately.&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="route.PNG" style="width: 573px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaPe.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136086i29E4AD8FD55FE822/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaPe.png" alt="0683p000009MaPe.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I would really appreciate if someone can help me out please as I am stuck on this. Unfortunately I do not have much Java and Spring experience and I couldn't manage to figure this out.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any help and pointers would be greatly appreciated.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Many thanks,&lt;/P&gt; 
&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:04:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T02:04:55Z</dc:date>
    <item>
      <title>Talend ESB Route and Context Variables or Property Placeholders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-Route-and-Context-Variables-or-Property-Placeholders/m-p/2231112#M21517</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am using Talend ESB, and have been using context variables (with &lt;EM&gt;implicit context load from file&lt;/EM&gt;) in &lt;STRONG&gt;data integration&lt;/STRONG&gt; jobs. Now I have created a &lt;STRONG&gt;route&lt;/STRONG&gt; to read from RabbitMQ. However, implicit load of context variables does not work.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the route, I am trying to set the RabbitMQ connection string dynamically, so that I will be able to pass the host, vhost, port, user, password loaded from a file (in the same way I pass connection parameters to MS SQL Server in the data integration jobs).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to construct the connection string as follows:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;"rabbitmq://" + context.RabbitMQ_Host + ":" + context.RabbitMQ_Port + "/DataExchange?vhost=" + context.RabbitMQ_VHost +"&amp;amp;exchangeType=topic&amp;amp;autoDelete=false&amp;amp;queue=Submitted_Record&amp;amp;username="+context.RabbitMQ_User + "&amp;amp;password=" + context.RabbitMQ_Password&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The issue is that implicit load of context variables does not work in routes for some reason. (Note that when I set the value of these context parameters hardcoded in Talend, it works).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;After searching it seems that I have two options:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) using a &lt;STRONG&gt;route_name.cfg&lt;/STRONG&gt;&amp;nbsp;file in the &lt;STRONG&gt;MyDrive:\TOS_ESB-20200219_1130-V7.3.1\Runtime_ESBSE\container\etc&lt;/STRONG&gt; folder - I tried this but the parameters are not being picked up when I run the job for some reason&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2) using&amp;nbsp;&lt;STRONG&gt;property placeholders&lt;/STRONG&gt; and modifying the Spring XML to load values from a file and use them at runtime&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have also found links to what others said was a very useful post (&lt;A href="https://edwardost.github.io/cloud/platform/soa/2015/05/14/Working-with-Property-Placeholders-in-Talend-ESB/" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://edwardost.github.io/cloud/platform/soa/2015/05/14/Working-with-Property-Placeholders-in-Talend-ESB/&lt;/A&gt;) but this seems to have been removed unfortunately.&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="route.PNG" style="width: 573px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaPe.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136086i29E4AD8FD55FE822/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaPe.png" alt="0683p000009MaPe.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I would really appreciate if someone can help me out please as I am stuck on this. Unfortunately I do not have much Java and Spring experience and I couldn't manage to figure this out.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any help and pointers would be greatly appreciated.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Many thanks,&lt;/P&gt; 
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-Route-and-Context-Variables-or-Property-Placeholders/m-p/2231112#M21517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:04:55Z</dc:date>
    </item>
  </channel>
</rss>

