Camel File write issue with multiple threads writing to same File

2015-08-24 Thread Vanshul . Chawla
Hello, We are facing an issue with File write in camel. Our Camel route runs with 36 threads and it writes to 4 files in parallel depending on Message Type. These files are written in append mode and a file per minute which we defined using FileName with datetime. Issue is that some files in a

Re: Load Bean Definitions from XML in Camel

2015-08-24 Thread Christian Müller
I didn't got the question... You can create a Camel route from (Spring) XML or you can use Java Code, e.g. implementing a RouteBuilder. Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache In

Re: how to route pojo in camel

2015-08-24 Thread Christian Müller
Something like this: from("timer:...") .to("sql:...") .split(...) .convertBodyTo(...) .to("cxf:...") .to("ftp:...") .end(); Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apa

Re: Apache Camel XA transaction

2015-08-24 Thread Christian Müller
Sorry, I mean this one: https://github.com/muellerc/camel-in-transaction/tree/master/src/test/java/org/apache/cmueller/camel/samples/camelone/xa Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer A

Re: Apache Camel XA transaction

2015-08-24 Thread Christian Müller
Have a look here: https://github.com/muellerc/camel-in-transaction/blob/master/src/test/java/org/apache/cmueller/camel/samples/camelone/tx/JmsAndJdbcCompensationTransactionSampleTest.java Hope this helps, Christian - Software Integration Specialist Apache Member V.P. Apache Came

Re: XA transactions in camel

2015-08-24 Thread Preben.Asmussen
Hi There is a couple of resources I know of https://github.com/muellerc/camel-in-transaction https://github.com/camelinaction (and book) https://github.com/CamelCookbook (and book) Have a look there /Preben -- View this message in context: http://camel.465427.n5.nabble.com/XA-transactions-

NoClassDefFoundError: net/minidev/json/parser/ContainerFactory

2015-08-24 Thread shuston
This is for Camel 2.15.3 (also had the problem with 2.15.2) I am a new Camel user, and trying to use jsonpath. I have in my pom.xml: org.apache.camel camel-jsonpath ${camel.version} In my XML config, I have: $.header[?(@.na

Exception thrown when reading a mail with an attached file, which name contains a semicolon

2015-08-24 Thread Thierry Frossard
Hi, I'm using Camel 2.15.2 with JDK 1.7 under Windows 7 and Eclipse 4.2.2 as development tool. My route reads from an IMAP server (IBM Lotus Notes). I have one big problem : when the route handles an email, which contains an attached file with a semicolon in his name, then the route always throws

Re: Camel CXF Transport works within Blueprint only when XSD validation is disabled

2015-08-24 Thread metatech
Hello, My understanding is that there is no simple solution to this problem. I propose I will create a JIRA ticket so that anyone can investigate it further later. Best regards, metatech -- View this message in context: http://camel.465427.n5.nabble.com/Camel-CXF-Transport-works-within-Bluep

Is it safe to use ThreadLocal to implement route scope for dependency injection?

2015-08-24 Thread Jan Zankowski
Hi, My goal is to implement DB multitenancy in a Camel application using Hibernate and Spring. For this, I need to implement the following Hibernate interface, which gets called on each read/write to the DB. public interface CurrentTenantIdentifierResolver { public String resolveCurrentTenantId