<?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: Using Java in a cProcessor the send message in queue(s) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-Java-in-a-cProcessor-the-send-message-in-queue-s/m-p/2364050#M127850</link>
    <description>tjavaflex may help you.&lt;BR /&gt;tlibrary load also.&lt;BR /&gt;&lt;BR /&gt;why dont you use tJMSInput and TJMSOutput?</description>
    <pubDate>Wed, 12 Jun 2019 10:27:15 GMT</pubDate>
    <dc:creator>fdenis</dc:creator>
    <dc:date>2019-06-12T10:27:15Z</dc:date>
    <item>
      <title>Using Java in a cProcessor the send message in queue(s)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-Java-in-a-cProcessor-the-send-message-in-queue-s/m-p/2364049#M127849</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;We have an ESB route which, according to some properties (is&amp;lt;System&amp;gt;), send the current message in one or more ActiveMQ queues. We actually have to configure each new system by hand with a new condition, and we wish to make it dynamic.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Our idea is to read all the headers of the message, and each time it begins by "is", we send it to the matching queue (using a bean method).&amp;nbsp;For that, we need to write in Java, in a cProcessor, the correct code to it :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;&amp;lt;String, Object&amp;gt; headers = exchange.getIn().getHeaders();
for(String key : headers.keySet())&lt;BR /&gt;{
	if(key.matches("is(.*)")&lt;BR /&gt;{
		String queueCible = beans.BESTBean.getQueueName(key, (String)exchange.getIn().getHeader("SourceSystem"), (String)exchange.getIn().getHeader("Entity"));
 		// missing code to send the message to the "queueCible"&lt;BR /&gt;}
}&lt;/PRE&gt; 
&lt;P&gt;Did someone knows how to do it ?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-Java-in-a-cProcessor-the-send-message-in-queue-s/m-p/2364049#M127849</guid>
      <dc:creator>FrancoisSmfy</dc:creator>
      <dc:date>2024-11-16T05:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using Java in a cProcessor the send message in queue(s)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-Java-in-a-cProcessor-the-send-message-in-queue-s/m-p/2364050#M127850</link>
      <description>tjavaflex may help you.&lt;BR /&gt;tlibrary load also.&lt;BR /&gt;&lt;BR /&gt;why dont you use tJMSInput and TJMSOutput?</description>
      <pubDate>Wed, 12 Jun 2019 10:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-Java-in-a-cProcessor-the-send-message-in-queue-s/m-p/2364050#M127850</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-06-12T10:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using Java in a cProcessor the send message in queue(s)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-Java-in-a-cProcessor-the-send-message-in-queue-s/m-p/2364051#M127851</link>
      <description>&lt;P&gt;Because I want to do it in a camel route, not in bundle OSGI job. I want to keep it as simple and fast as possible.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 10:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-Java-in-a-cProcessor-the-send-message-in-queue-s/m-p/2364051#M127851</guid>
      <dc:creator>FrancoisSmfy</dc:creator>
      <dc:date>2019-06-12T10:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using Java in a cProcessor the send message in queue(s)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-Java-in-a-cProcessor-the-send-message-in-queue-s/m-p/2364052#M127852</link>
      <description>so go to tjavaflex.</description>
      <pubDate>Wed, 12 Jun 2019 10:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-Java-in-a-cProcessor-the-send-message-in-queue-s/m-p/2364052#M127852</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-06-12T10:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using Java in a cProcessor the send message in queue(s)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-Java-in-a-cProcessor-the-send-message-in-queue-s/m-p/2364053#M127853</link>
      <description>&lt;P&gt;There isn't any t&amp;lt;ComponentName&amp;gt; (t for Talend) components when we design a route, only c&amp;lt;ComponentName&amp;gt; (c for camel) components.&lt;/P&gt;&lt;P&gt;So the tJavaFlex isn't in the Palette and can't be used.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 10:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-Java-in-a-cProcessor-the-send-message-in-queue-s/m-p/2364053#M127853</guid>
      <dc:creator>FrancoisSmfy</dc:creator>
      <dc:date>2019-06-12T10:40:00Z</dc:date>
    </item>
  </channel>
</rss>

