<?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: saving value to a context attribute in route in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/saving-value-to-a-context-attribute-in-route/m-p/2205065#M5678</link>
    <description>Hi&lt;BR /&gt;The log endpoint initialized at route start with null value from context variable; try to store your dynamic data using cSetHeader.</description>
    <pubDate>Mon, 21 Sep 2015 14:02:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-21T14:02:21Z</dc:date>
    <item>
      <title>saving value to a context attribute in route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/saving-value-to-a-context-attribute-in-route/m-p/2205064#M5677</link>
      <description>&lt;P&gt;I have a simple route that listens to an ActiveMQ queue using cJMS. The message contains a JMS Property "Subject", and I want to decode it and save it into my context attribute "MySubject" for later use. I am using cProcessor (after the cJMS component) with the following code:&lt;BR /&gt;context.MySubject= exchange.getIn().getHeader("Subject").toString();&lt;BR /&gt;I can see the correct value returned by the code: &amp;nbsp;&lt;STRONG&gt;&lt;I&gt;exchange.getIn().getHeader("Subject").toString() &lt;/I&gt;&lt;/STRONG&gt;(using for example,&amp;nbsp;System.out.println("*****" + exchange.getIn().getHeader("Subject").toString()) ), but when I use the cLog (after cProcessor) to print out the value of context.MySubject, it is null.&lt;BR /&gt;Can someone please tell me what I am missing?&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/saving-value-to-a-context-attribute-in-route/m-p/2205064#M5677</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T11:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: saving value to a context attribute in route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/saving-value-to-a-context-attribute-in-route/m-p/2205065#M5678</link>
      <description>Hi&lt;BR /&gt;The log endpoint initialized at route start with null value from context variable; try to store your dynamic data using cSetHeader.</description>
      <pubDate>Mon, 21 Sep 2015 14:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/saving-value-to-a-context-attribute-in-route/m-p/2205065#M5678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-21T14:02:21Z</dc:date>
    </item>
  </channel>
</rss>

