<?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: Updating the camelContext within a route in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Updating-the-camelContext-within-a-route/m-p/2207665#M7209</link>
    <description>Hi,&lt;BR /&gt;I have the same issue... All my logs have "unknown" instead of the route ID.&lt;BR /&gt;I added a cConfig component in the route with "camelContext.setUseMDCLogging(true);"&lt;BR /&gt;But it doesn't help.&lt;BR /&gt;Any idea ?&lt;BR /&gt;Eric</description>
    <pubDate>Sat, 19 Nov 2016 14:33:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-19T14:33:22Z</dc:date>
    <item>
      <title>Updating the camelContext within a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Updating-the-camelContext-within-a-route/m-p/2207662#M7206</link>
      <description>Hi all,
&lt;BR /&gt;I am looking to update the camelContext within the cConfig component of my route. I want to define the routeID which can then be used as the key in an MDC sifting appender so that I can achieve application-level logging (i.e. I want all of the log messages for this single route to be placed into their own log file).
&lt;BR /&gt;I have: camelContext.setUseMDCLogging(true);, but I don't see a method to update the routeId of the camel context - can anyone help with this?
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Sam</description>
      <pubDate>Sat, 16 Nov 2024 10:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Updating-the-camelContext-within-a-route/m-p/2207662#M7206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Updating the camelContext within a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Updating-the-camelContext-within-a-route/m-p/2207663#M7207</link>
      <description>routeId generated as _ (for 6.1): routeId("SimpleRecipientList_cCXF_1")</description>
      <pubDate>Fri, 29 Jan 2016 08:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Updating-the-camelContext-within-a-route/m-p/2207663#M7207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-29T08:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Updating the camelContext within a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Updating-the-camelContext-within-a-route/m-p/2207664#M7208</link>
      <description>Hi,&lt;BR /&gt;Thank you for the response. The problem I am having is that the routeId is not being picked up by my MDCSiftingAppender - the routeId is returned empty, meaning all the logs are being placed in the default file 'unknown_cc' (log4j configuration below - I have treid this with both routeId and camel.routeId)&lt;BR /&gt;# Camel MDC appender&lt;BR /&gt;log4j.appender.camel-mdc=org.apache.log4j.sift.MDCSiftingAppender&lt;BR /&gt;log4j.appender.camel-mdc.key=routeId&lt;BR /&gt;log4j.appender.camel-mdc.default=unknown_cc&lt;BR /&gt;log4j.appender.camel-mdc.appender=org.apache.log4j.FileAppender&lt;BR /&gt;log4j.appender.camel-mdc.appender.layout=org.apache.log4j.PatternLayout&lt;BR /&gt;log4j.appender.camel-mdc.appender.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %X{camel.exchangeId} | %X{camel.contextId} | %X{camel.routeId} | %m%n&lt;BR /&gt;log4j.appender.camel-mdc.appender.file=${karaf.home}/log/camel-$\\{routeId\\}.log&lt;BR /&gt;log4j.appender.camel-mdc.appender.append=true&lt;BR /&gt;Any ideas why the routeId is not being populated?&lt;BR /&gt;Thanks,&lt;BR /&gt;Sam</description>
      <pubDate>Fri, 29 Jan 2016 08:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Updating-the-camelContext-within-a-route/m-p/2207664#M7208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-29T08:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Updating the camelContext within a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Updating-the-camelContext-within-a-route/m-p/2207665#M7209</link>
      <description>Hi,&lt;BR /&gt;I have the same issue... All my logs have "unknown" instead of the route ID.&lt;BR /&gt;I added a cConfig component in the route with "camelContext.setUseMDCLogging(true);"&lt;BR /&gt;But it doesn't help.&lt;BR /&gt;Any idea ?&lt;BR /&gt;Eric</description>
      <pubDate>Sat, 19 Nov 2016 14:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Updating-the-camelContext-within-a-route/m-p/2207665#M7209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-19T14:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Updating the camelContext within a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Updating-the-camelContext-within-a-route/m-p/2207666#M7210</link>
      <description>In fact, if I stop and restart Karaf, it works... But if I undeploy the route and deploy it again, I get the same issue again (unknown instead of routeID in the logs).&amp;nbsp;
&lt;BR /&gt;This issue happens in 6.1. in 6.2 it works fine...
&lt;BR /&gt;Eric</description>
      <pubDate>Sat, 19 Nov 2016 15:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Updating-the-camelContext-within-a-route/m-p/2207666#M7210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-19T15:23:48Z</dc:date>
    </item>
  </channel>
</rss>

