<?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: Camel to Job parameters in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363303#M127201</link>
    <description>&lt;P&gt;That is not actually the case. Headers are of class Object. When you receive your Exchange through the cTalendJob, you use the Camel Simple Language (&lt;A href="http://camel.apache.org/simple.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://camel.apache.org/simple.html&lt;/A&gt;) to retrieve the IN body ("${in.body}") or the OUT body ("${out.body}"). This is a Message (&lt;A href="https://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Message.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Message.html&lt;/A&gt;). If you take a look at the link above you will see that the Headers are stored as Objects with String keys.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I may have misunderstood your problem here, but you should be able to store any class in a header&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jul 2018 09:48:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-20T09:48:27Z</dc:date>
    <item>
      <title>Camel to Job parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363302#M127200</link>
      <description>&lt;P&gt;cTalendJob and tRouteInput allow to send Body and Headers from Apache Camel routes to Talend jobs&lt;/P&gt;&lt;P&gt;But Object type can only be pass through "body".&amp;nbsp; Headers have to be String only.&lt;/P&gt;&lt;P&gt;I checked the cTalendJob Java code on GitHub and it looks like org.apache.camel.Exchange could be sent to Job if there was a method setExchange(org.apache.camel.Exchange exchange) defined in the Job&lt;/P&gt;&lt;P&gt;That would be great&lt;/P&gt;&lt;P&gt;This is a bit like Datasource but for other eager loading objects instances that are loaded at Config time on the Camel route&lt;/P&gt;&lt;P&gt;How can I force this method definition in a Job ?&lt;/P&gt;&lt;P&gt;What are other options to pass objects from route to job ?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363302#M127200</guid>
      <dc:creator>vharcq</dc:creator>
      <dc:date>2024-11-16T07:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Camel to Job parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363303#M127201</link>
      <description>&lt;P&gt;That is not actually the case. Headers are of class Object. When you receive your Exchange through the cTalendJob, you use the Camel Simple Language (&lt;A href="http://camel.apache.org/simple.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://camel.apache.org/simple.html&lt;/A&gt;) to retrieve the IN body ("${in.body}") or the OUT body ("${out.body}"). This is a Message (&lt;A href="https://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Message.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Message.html&lt;/A&gt;). If you take a look at the link above you will see that the Headers are stored as Objects with String keys.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I may have misunderstood your problem here, but you should be able to store any class in a header&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 09:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363303#M127201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-20T09:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Camel to Job parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363304#M127202</link>
      <description>&lt;P&gt;Yes headers are Object on the Camel side&lt;/P&gt;&lt;P&gt;And yes Job context can be defined as Objects&lt;/P&gt;&lt;P&gt;But when using the Camel Component cTalendJob, you use Camel Headers to send to Talend Job Context variables, the cTalendJob makes toString() operation &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 10:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363304#M127202</guid>
      <dc:creator>vharcq</dc:creator>
      <dc:date>2018-07-24T10:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Camel to Job parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363305#M127203</link>
      <description>&lt;P&gt;As a workaround I had to build a "fat" body included the real body and some other object instances&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 10:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363305#M127203</guid>
      <dc:creator>vharcq</dc:creator>
      <dc:date>2018-07-24T10:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Camel to Job parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363306#M127204</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/00539000005Gt8aAAC"&gt;@vharcq&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Yes headers are Object on the Camel side&lt;/P&gt; 
 &lt;P&gt;And yes Job context can be defined as Objects&lt;/P&gt; 
 &lt;P&gt;But when using the Camel Component cTalendJob, you use Camel Headers to send to Talend Job Context variables, the cTalendJob makes toString() operation &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;You do not need to use Context Variables at all here. Simply use a tRouteInput inside your Talend job, the headers are received automatically by the cTalendJob, and all you need to do is use a bit of Apache Camel Simple Expression Language to extract the data using the tRouteInput. You are certainly not limited to Strings here&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 10:22:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363306#M127204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-24T10:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Camel to Job parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363307#M127205</link>
      <description>&lt;P&gt;I actually did use Propagate Header on cTalendJob and use context on Job to retrieve values.&lt;/P&gt;
&lt;P&gt;That is where the toString occurs&lt;/P&gt;
&lt;P&gt;When I specify header manually in tRouteInput, I can do Objects&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for being stubborn to me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 09:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363307#M127205</guid>
      <dc:creator>vharcq</dc:creator>
      <dc:date>2018-07-25T09:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Camel to Job parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363308#M127206</link>
      <description>&lt;P&gt;No problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I've been there when you expect something to work in a particular way. I've spent hours, days, trying to figure out ways of doing things using the ESB. When it works, it's awesome, but when you can't find examples and are left with trial and error, it can be REALLY annoying &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 09:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363308#M127206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-25T09:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Camel to Job parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363309#M127207</link>
      <description>&lt;P&gt;Here is the Project export for use by others&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MApk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154880i5FA1A2F11DCD9464/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MApk.png" alt="0683p000009MApk.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LtJS"&gt;RouteToJob.zip&lt;/A&gt;</description>
      <pubDate>Wed, 25 Jul 2018 11:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-to-Job-parameters/m-p/2363309#M127207</guid>
      <dc:creator>vharcq</dc:creator>
      <dc:date>2018-07-25T11:17:27Z</dc:date>
    </item>
  </channel>
</rss>

