<?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] tRestRequest endpoint with hostname variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333834#M102575</link>
    <description>I thought this was solved because it ran correctly from ESB Studio, but when deployed it fails to substitute the context.
&lt;BR /&gt;Any suggestions ?</description>
    <pubDate>Wed, 27 Aug 2014 18:38:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-08-27T18:38:28Z</dc:date>
    <item>
      <title>[resolved] tRestRequest endpoint with hostname variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333832#M102573</link>
      <description>&lt;P&gt;We have a tRestRequest component deployed and working nicely behind load-balancer using endpoint name like:&lt;BR /&gt;"h t t p ://beta-conn-talend1:8090/services"&lt;BR /&gt;Now we need to extend to multiple hosts and do not want to hard code the hostname in the component.&lt;BR /&gt;How do we best achieve this?&amp;nbsp; Context variable ?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333832#M102573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest endpoint with hostname variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333833#M102574</link>
      <description>&lt;FONT color="#ff6666"&gt;&lt;S&gt;Solved.&amp;nbsp;&lt;/S&gt;&lt;/FONT&gt; Added tjava component:
&lt;BR /&gt;String thishostname = InetAddress.getLocalHost().getHostName();
&lt;BR /&gt;System.out.println(thishostname);
&lt;BR /&gt;context.hostname = thishostname;
&lt;BR /&gt;advanced settings: import java.net.InetAddress;
&lt;BR /&gt;Then changed endpoint to "h t t p : / / " + context.hostname + ":8090/services"</description>
      <pubDate>Wed, 27 Aug 2014 17:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333833#M102574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-27T17:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest endpoint with hostname variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333834#M102575</link>
      <description>I thought this was solved because it ran correctly from ESB Studio, but when deployed it fails to substitute the context.
&lt;BR /&gt;Any suggestions ?</description>
      <pubDate>Wed, 27 Aug 2014 18:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333834#M102575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-27T18:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest endpoint with hostname variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333835#M102576</link>
      <description>mmeasel,&lt;BR /&gt;In the studio, you can declare a property file from File -&amp;gt; Edit project properties -&amp;gt; job settings -&amp;gt; implicit context load.&lt;BR /&gt;There you can define a path, the path should be shipped with the job/route.&lt;BR /&gt;You still need to have the correct path defined and property file needs to be present at that path on your server.&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Thu, 28 Aug 2014 10:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333835#M102576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-28T10:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest endpoint with hostname variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333836#M102577</link>
      <description>&lt;FONT size="2"&gt;Morgan, thank you for your response but the problem is not with the context being loaded. &lt;BR /&gt;The problem is that the runtime behavior is different from the studio behavior. &amp;nbsp;&lt;BR /&gt;&lt;B&gt;My laptop (studio):&lt;/B&gt;&lt;BR /&gt;Starting job echo_test at 12:41 27/08/2014.&lt;BR /&gt; connecting to socket on port 3938&lt;BR /&gt; connected&lt;BR /&gt;MLaptop&lt;BR /&gt;: org.apache.cxf.endpoint.ServerImpl - Setting the server's publish address to be &lt;FONT color="#3366cc"&gt;h t t p : / / MLaptop:8090/services&lt;/FONT&gt;&lt;BR /&gt;: org.eclipse.jetty.server.Server - jetty-8.1.14.v20131031&lt;BR /&gt;: org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector@MLaptop:8090&lt;BR /&gt;&lt;B&gt;Server (ESB runtime):&lt;/B&gt;&lt;BR /&gt;17:26:25,608 | INFO&amp;nbsp; | Refresh Packages | g.apache.cxf.endpoint.ServerImpl&amp;nbsp;&amp;nbsp; 84 &lt;BR /&gt;| 120 - org.apache.cxf.cxf-api - 2.7.11 | Setting the server's publish address to be &lt;FONT color="#ff3366"&gt;h t t p : / / " + context.hostname + ":8090/services&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 28 Aug 2014 13:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333836#M102577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-28T13:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest endpoint with hostname variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333837#M102578</link>
      <description>If I understand right, you want to get the name of your host where the job runs and your &lt;B&gt;context.hostname&lt;/B&gt; doesn't get filled?</description>
      <pubDate>Thu, 28 Aug 2014 14:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333837#M102578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-28T14:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest endpoint with hostname variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333838#M102579</link>
      <description>Maybe you could also check the .cfg file of your job located at "container/etc/YOURJOBNAME.cfg"&lt;BR /&gt;It should have the name of the context you defined in the Studio.</description>
      <pubDate>Thu, 28 Aug 2014 14:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333838#M102579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-28T14:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest endpoint with hostname variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333839#M102580</link>
      <description>Hi, 
&lt;BR /&gt;I'd like to add that as far as I recall one can have a relative address only set in the studio, it should be set to a correct absolute URI when deployed into the container 
&lt;BR /&gt;Cheers, Sergey</description>
      <pubDate>Fri, 29 Aug 2014 10:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333839#M102580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-29T10:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest endpoint with hostname variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333840#M102581</link>
      <description>sberyozkin, 
&lt;BR /&gt;You can also have a relative address in the runtime. 
&lt;BR /&gt;Karaf will deploy the job on the ports defined in container/etc/org.ops4j.pax.web.cfg</description>
      <pubDate>Fri, 29 Aug 2014 10:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333840#M102581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-29T10:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest endpoint with hostname variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333841#M102582</link>
      <description>Yes, this is what I actually meant,
&lt;BR /&gt;Cheers, Sergey</description>
      <pubDate>Fri, 29 Aug 2014 10:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-endpoint-with-hostname-variable/m-p/2333841#M102582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-29T10:21:11Z</dc:date>
    </item>
  </channel>
</rss>

