<?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: Setting endpoint's IP for ?CXF as consumer (client) at runtime in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Setting-endpoint-s-IP-for-CXF-as-consumer-client-at-runtime/m-p/2375627#M138010</link>
    <description>I'm sorry!&amp;nbsp;
&lt;BR /&gt;I've just misnamed the type of endpoint. In terms of Camel it's not a "consumer", but a "producer".
&lt;BR /&gt;And finally I've found the solution from camel-cxf website - to override producer endpoint address like this:
&lt;BR /&gt;
&lt;PRE&gt;// set up the service address from the message header to override the setting of CXF endpoint&lt;BR /&gt;exchange.getIn().setHeader(Exchange.DESTINATION_OVERRIDE_URL, "dynamically created URL");&lt;/PRE&gt;</description>
    <pubDate>Fri, 14 Aug 2015 14:11:20 GMT</pubDate>
    <dc:creator>est412</dc:creator>
    <dc:date>2015-08-14T14:11:20Z</dc:date>
    <item>
      <title>Setting endpoint's IP for ?CXF as consumer (client) at runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-endpoint-s-IP-for-CXF-as-consumer-client-at-runtime/m-p/2375625#M138008</link>
      <description>Hello!&lt;BR /&gt;Could you show me the right way to set IP for ?CXF consumer (client) at runtime?&lt;BR /&gt;For example:&lt;BR /&gt;(Start) -&amp;gt; (get IP from DB) -&amp;gt; cCXF (using this IP) -&amp;gt; (print response)&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;P.S. I know how to use cRecipientList with hand-made edpoint URI, but is it possible to achive the same goal using cCXF component (may be&amp;nbsp;with some additional components)?</description>
      <pubDate>Sat, 16 Nov 2024 11:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-endpoint-s-IP-for-CXF-as-consumer-client-at-runtime/m-p/2375625#M138008</guid>
      <dc:creator>est412</dc:creator>
      <dc:date>2024-11-16T11:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Setting endpoint's IP for ?CXF as consumer (client) at runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-endpoint-s-IP-for-CXF-as-consumer-client-at-runtime/m-p/2375626#M138009</link>
      <description>This is tricky as when you start the Talend Route everything needs to be set. A Talend Route is really a Camel Context (it is badly named). The Routes inside your Camel Context need to be stopped and restarted between changing values such as Endpoints. This can be done (I had to do it a long time ago and I am not sure I still have the code), but it requires Java coding and a lot of manipulating. I ended up creating dynamic routes in code and starting them and stopping them in code inside my Talend Route. This will not be easy.
&lt;BR /&gt;
&lt;BR /&gt;An easier way to achieve this is to use context parameter files with your Routes and change the values (maybe using a Talend Job), then restart the Route inside the Karaf. When it restarts it will pick up the new context variable values. 
&lt;BR /&gt;1) Stop service. 
&lt;BR /&gt;2) Go to &amp;lt;Talend ESB runtime install path&amp;gt;\container\etc and create a file called yourservicename.cfg, edit the file as below:
&lt;BR /&gt;
&lt;BR /&gt;varName1=newValue1;
&lt;BR /&gt;varName2=newValue2;
&lt;BR /&gt;3) Start service.</description>
      <pubDate>Fri, 14 Aug 2015 12:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-endpoint-s-IP-for-CXF-as-consumer-client-at-runtime/m-p/2375626#M138009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T12:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Setting endpoint's IP for ?CXF as consumer (client) at runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-endpoint-s-IP-for-CXF-as-consumer-client-at-runtime/m-p/2375627#M138010</link>
      <description>I'm sorry!&amp;nbsp;
&lt;BR /&gt;I've just misnamed the type of endpoint. In terms of Camel it's not a "consumer", but a "producer".
&lt;BR /&gt;And finally I've found the solution from camel-cxf website - to override producer endpoint address like this:
&lt;BR /&gt;
&lt;PRE&gt;// set up the service address from the message header to override the setting of CXF endpoint&lt;BR /&gt;exchange.getIn().setHeader(Exchange.DESTINATION_OVERRIDE_URL, "dynamically created URL");&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-endpoint-s-IP-for-CXF-as-consumer-client-at-runtime/m-p/2375627#M138010</guid>
      <dc:creator>est412</dc:creator>
      <dc:date>2015-08-14T14:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Setting endpoint's IP for ?CXF as consumer (client) at runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-endpoint-s-IP-for-CXF-as-consumer-client-at-runtime/m-p/2375628#M138011</link>
      <description>Ah I see, it's partly my mistake. I overlooked the bracket "client" which would have revealed it to me. So long as you have it sorted &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-endpoint-s-IP-for-CXF-as-consumer-client-at-runtime/m-p/2375628#M138011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T14:17:23Z</dc:date>
    </item>
  </channel>
</rss>

