<?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 change context based on server name in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/change-context-based-on-server-name/m-p/2219383#M14209</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement, where I have context defined for three servers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Server1-contextgroup1&lt;/P&gt;&lt;P&gt;Server2-contextgroup2&lt;/P&gt;&lt;P&gt;Server3- contextgroup3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I configure the job to run in such a way , that it selects the context group based on the server it is running. Or change the context group based on the server name after the job is started.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:45:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T06:45:08Z</dc:date>
    <item>
      <title>change context based on server name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/change-context-based-on-server-name/m-p/2219383#M14209</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement, where I have context defined for three servers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Server1-contextgroup1&lt;/P&gt;&lt;P&gt;Server2-contextgroup2&lt;/P&gt;&lt;P&gt;Server3- contextgroup3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I configure the job to run in such a way , that it selects the context group based on the server it is running. Or change the context group based on the server name after the job is started.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/change-context-based-on-server-name/m-p/2219383#M14209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: change context based on server name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/change-context-based-on-server-name/m-p/2219384#M14210</link>
      <description>&lt;P&gt;hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;you can check computer name with&lt;/P&gt; 
&lt;PRE&gt;java.net.InetAddress.getLocalHost().getHostName()&lt;/PRE&gt; 
&lt;P&gt;also you can check any OS variables with&lt;/P&gt; 
&lt;PRE&gt;System.getenv("env_name")&lt;/PRE&gt; 
&lt;P&gt;as variant you can check variable and run subjob with context group based on variable (host) name&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;but more simple - load context from file/database&lt;/P&gt; 
&lt;P&gt;in this case you will need only 1 context group for any number of servers, you can use same file name, or use variable name as part of context file or as part of sql query for extract and load proper context&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 13:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/change-context-based-on-server-name/m-p/2219384#M14210</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-01-25T13:59:29Z</dc:date>
    </item>
  </channel>
</rss>

