<?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 tHash (output, input) not safe Thread :: karaf 404 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tHash-output-input-not-safe-Thread-karaf-404/m-p/2298924#M71328</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have&amp;nbsp;implemented many simple cxf WS, using tHash components&lt;/P&gt; 
&lt;P&gt;When deploying the WS in Karaf and calling the WS, i get 404 error&lt;/P&gt; 
&lt;P&gt;Reported by Talend support : this is due to the fact that Karaf runs in multi-threaded environment, while tHash components are not safe thread&lt;/P&gt; 
&lt;P&gt;tHash component are major components in all cxf development, but i am told by the support, that they cannot be used in multi-thred environment&lt;/P&gt; 
&lt;P&gt;..that implyes that i cannot deploy cxf WS containing tHash component in Karaf&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What can replace tHash compnoent in cxf develompent?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 09:24:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T09:24:52Z</dc:date>
    <item>
      <title>tHash (output, input) not safe Thread :: karaf 404</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHash-output-input-not-safe-Thread-karaf-404/m-p/2298924#M71328</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have&amp;nbsp;implemented many simple cxf WS, using tHash components&lt;/P&gt; 
&lt;P&gt;When deploying the WS in Karaf and calling the WS, i get 404 error&lt;/P&gt; 
&lt;P&gt;Reported by Talend support : this is due to the fact that Karaf runs in multi-threaded environment, while tHash components are not safe thread&lt;/P&gt; 
&lt;P&gt;tHash component are major components in all cxf development, but i am told by the support, that they cannot be used in multi-thred environment&lt;/P&gt; 
&lt;P&gt;..that implyes that i cannot deploy cxf WS containing tHash component in Karaf&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What can replace tHash compnoent in cxf develompent?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHash-output-input-not-safe-Thread-karaf-404/m-p/2298924#M71328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: tHash (output, input) not safe Thread :: karaf 404</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHash-output-input-not-safe-Thread-karaf-404/m-p/2298925#M71329</link>
      <description>&lt;P&gt;It all depends on the logic of your webservices. &amp;nbsp;Hence, there is no silver bullet answer. &amp;nbsp;You should not use the tHash components in services. &amp;nbsp;Hence, you should think of designing differently. &amp;nbsp;The tHash components are built on the batch paradigm, i.e. cache hundreds of thousands of records in memory. &amp;nbsp;You do not want to do that in a service. &amp;nbsp;In a service, you process messages 1 at a time since each service call is for 1 soap message. &amp;nbsp;Hence, you will need to think about it from that perspective. &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;Do you have sample screenshots and data volume for your services? &amp;nbsp;Can you use globalMap for example? &amp;nbsp;Maybe use pid, which is the process id, and is different for each threads in the naming of your variables. &amp;nbsp;And make sure you set all your globalMap and other variables to null at the end of your processing for each thread.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 02:52:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHash-output-input-not-safe-Thread-karaf-404/m-p/2298925#M71329</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-21T02:52:24Z</dc:date>
    </item>
  </channel>
</rss>

