Re: Using custom MDC values with Camel

2014-11-14 Thread James Murphy
Joni Nousiainen joni.nousiainen@... writes: Thank you for your answer! I'll look into creating a custom UoW factory. Also, I will follow the JIRA issue (CAMEL-7444) for future updates. BR, Joni Hi Joni, How did you get on with this? I'm looking into something very similar

Re: Using custom MDC values with Camel

2014-09-07 Thread Claus Ibsen
Hi There is a JIRA ticket about to support this in the future. You can use a custom UoW factory and extend the MDC factory we have an add the logic you need. And then configure Camel to use your factory. http://camel.apache.org/advanced-configuration-of-camelcontext-using-spring.html On Fri,

Re: Using custom MDC values with Camel

2014-09-07 Thread Joni Nousiainen
Thank you for your answer! I'll look into creating a custom UoW factory. Also, I will follow the JIRA issue (CAMEL-7444) for future updates. BR, Joni 2014-09-07 9:29 GMT+03:00 Claus Ibsen claus.ib...@gmail.com: Hi There is a JIRA ticket about to support this in the future. You can use a

Using custom MDC values with Camel

2014-09-05 Thread Joni Nousiainen
Hi! My use case: I want name log files based on XML file names that I'm processing. E.g. if the file name is sample.xml log output would go to incoming.xml.log. I have read about MDC support in Camel and Karaf, and based on that I've come up with a working solution: I put the XML file name into