<?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: tESBConsumer Runtime Timeout Configuration in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-Runtime-Timeout-Configuration/m-p/2289746#M63099</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Have you already checked the provider for this timeout issue?&amp;nbsp; For the DI perspective, running the job with the generated .sh file, the connection time out properties setting in component will be respected in batch file.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2019 10:25:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-28T10:25:25Z</dc:date>
    <item>
      <title>tESBConsumer Runtime Timeout Configuration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-Runtime-Timeout-Configuration/m-p/2289745#M63098</link>
      <description>&lt;P&gt;Dear community colleagues,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a REST service that consumes a SOAP service using tESBConsumer component. This SOAP call sometimes can take some minutes to return and when it reaches a defined timeout limit, the component throws an error going to OnComponentError trigger, so the REST service returns a HTTP 408 timeout with an ID and redirects the request to ActiveMQ.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Then there is a route that captures this message from ActiveMQ and redirects it to a job that basically does the same SOAP call, but now the tESBConsumer component has a higher timeout limit and the component response is redirected to another queue, so the client can request the SOAP service response after it has finished using another REST operation. This way the SOAP service response is already stored in the queue and the client won't need to keep waiting.&lt;/P&gt; 
&lt;P&gt;This scenario works perfectly when running both REST service job and route on Studio, where I can configure the tESBConsumer timeout parameters in component's advanced settings (Connection timeout and Receive Timeout). But the Studio itself shows a message that this needs to be configured in another way in Runtime and asks to see the Documentation.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The components documentation shows the following instructions to configure timeout limit for &lt;A href="https://help.talend.com/reader/KxVIhxtXBBFymmkkWJ~O4Q/GFvy7HPw~kxppq8OC24JBg" target="_self" rel="nofollow noopener noreferrer"&gt;tESBConsumer&lt;/A&gt;:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;Create a configuration file with the name org.apache.cxf.http.conduits-&amp;lt;endpoint_name&amp;gt;.cfg in the &amp;lt;TalendRuntimePath&amp;gt;/container/etc/ folder.&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;Specify the url of the Web service and the client.ConnectionTimeout parameter in milliseconds in the configuration file. If you need to use the Receive time out option, specify the client.ReceiveTimeout in milliseconds too. The url can be a full endpoint address or a regular expression containing wild cards, for example:&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;url = &lt;A href="http://localhost:8040/*" target="_blank"&gt;http://localhost:8040/*&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;client.ConnectionTimeout=10000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;client.ReceiveTimeout=20000000&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;, in which &lt;A href="http://localhost:8040/*" target="_blank"&gt;http://localhost:8040/*&lt;/A&gt; matches all urls starting with &lt;A href="http://localhost:8040/" target="_blank"&gt;http://localhost:8040/&lt;/A&gt;.&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;So following these instructions I created two files in etc folder like this:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;org.apache.cxf.http.conduits-Clientes.cfg&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;url = http://ws.serviceurl.com.br/wsprincipal/*
client.ConnectionTimeout = 60000
client.ReceiveTimeout = 120000&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;org.apache.cxf.http.conduits-Clientes_Route.cfg&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;url = http://ws.serviceurl.com.br/wsprincipal/*
client.ConnectionTimeout = 120000
client.ReceiveTimeout = 600000&lt;/PRE&gt; 
&lt;P&gt;The issue I'm facing is that the Runtime is reading both of these config files but it is not relating them according with the endpoint name. The timeout configuration seems to apply globally and since these files point to the same soap service URL, both REST service and Route ends by using the same timeout configuration from the last config file put in etc directory.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way to force one configuration for the Route and other for the REST Job?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you in advance.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards,&lt;/P&gt; 
&lt;P&gt;Anselmo&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-Runtime-Timeout-Configuration/m-p/2289745#M63098</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2024-11-16T05:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: tESBConsumer Runtime Timeout Configuration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-Runtime-Timeout-Configuration/m-p/2289746#M63099</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Have you already checked the provider for this timeout issue?&amp;nbsp; For the DI perspective, running the job with the generated .sh file, the connection time out properties setting in component will be respected in batch file.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 10:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-Runtime-Timeout-Configuration/m-p/2289746#M63099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-28T10:25:25Z</dc:date>
    </item>
  </channel>
</rss>

