Re: Help to review this code

2012-05-09 Thread Christian Müller
Hello Tam, first of all, welcome in the Camel community. Please use the users@ mailing list for questions like this. The dev@ user list is for the Camel contributor/committer discussing e.g. how to implement a feature. Regarding to your questions: 1) Have a look at [1] and [2]. 2) If you want to

Re: Split XML file

2012-05-09 Thread alexis229
The result is the same: one file with 2 tags. I begin to think that camel can't split tags into several files automatically. -- View this message in context: http://camel.465427.n5.nabble.com/Split-XML-file-tp5697441p5697667.html Sent from the Camel Development mailing list archive at Nabble.com

Re: Split XML file

2012-05-09 Thread Claus Ibsen
You can use the message id as the file name, as its unique to("file:outbox?fileName=${id}.xml") On Wed, May 9, 2012 at 4:51 PM, alexis229 wrote: > Sorry i didn't know. I can re-create my post if you want... > > Well, i know that I can create my own file name with the option "fileName" > but it

Re: Split XML file

2012-05-09 Thread alexis229
Sorry i didn't know. I can re-create my post if you want... Well, i know that I can create my own file name with the option "fileName" but it didn't create differents files. -- View this message in context: http://camel.465427.n5.nabble.com/Split-XML-file-tp5697441p5697615.html Sent from the Ca

Re: Split XML file

2012-05-09 Thread Claus Ibsen
On Wed, May 9, 2012 at 4:19 PM, alexis229 wrote: > Now, with the fileExist option I have my two tags, but in a same file: > > JamesJohn > > And yes, it's normal that I have two tags firstName. > > I would like to separate these two tags in separate files. > You should use the @user mailinglist fo

Re: Split XML file

2012-05-09 Thread alexis229
Now, with the fileExist option I have my two tags, but in a same file: JamesJohn And yes, it's normal that I have two tags firstName. I would like to separate these two tags in separate files. -- View this message in context: http://camel.465427.n5.nabble.com/Split-XML-file-tp5697441p5697510

Re: Split XML file

2012-05-09 Thread Claus Ibsen
Hi Have you seen the documentation for the file component http://camel.apache.org/file2 There is a fileExists option you can configure to Append instead of Override (which is default). And just to be clear, it is on purpose, you have 2 tags in your XML ? On Wed, May 9, 2012 at 3:52 PM, alexis2

Re: Split XML file

2012-05-09 Thread Johan Edstrom
You want an enumeration of Persons On May 9, 2012, at 9:52, alexis229 wrote: > Hi guys! > > First of all, I'm a beginner in apache camel, I try to develop a very basic > route which split a XML file (see below). > > * > James > John > Strachan > London > * > > > My goal is to have, in

Split XML file

2012-05-09 Thread alexis229
Hi guys! First of all, I'm a beginner in apache camel, I try to develop a very basic route which split a XML file (see below). * James John Strachan London * My goal is to have, in output : a xml file with the first element "James" and an another xml file with the second element "John

Help to review this code

2012-05-09 Thread tamnguyen
Dear, I began to study apache camel by doing a case study as the following. I have an application that crawl RSS from given sites and store the data to database. Another application will read and display feed on a web site. For the get RSS part, I can do easy using RSS module. The code as th

Re: [DISCUSS] - Apache Camel 2.10 release

2012-05-09 Thread Claus Ibsen
Just a heads-up that Camel 2.10 now requires Maven 3.0.2 or better to build from source. We put out note in the 2.9 release notes that we would drop Maven 2.x support. Also I upgrade the maven bundle plugin to 2.3.7, so keep an eye out if that plugin makes some mistakes. It has done that in the pa

Re: [DISCUSS] - Apache Camel 2.10 release

2012-05-09 Thread Christian Müller
Thanks Dan, thanks Claus, great work. I got a compile failure in camel-quickfix. Will have a look on it later... Best, Christian On Wed, May 9, 2012 at 10:53 AM, Claus Ibsen wrote: > On Tue, May 8, 2012 at 9:02 PM, Daniel Kulp wrote: > > > > The latest Jenkins build definitely looks a TON bet

Re: [DISCUSS] - Apache Camel 2.10 release

2012-05-09 Thread Claus Ibsen
On Tue, May 8, 2012 at 9:02 PM, Daniel Kulp wrote: > > The latest Jenkins build definitely looks a TON better: > > > https://builds.apache.org/job/Camel.trunk.fulltest.java7/82/ > Great work. Nice to see it down to a manageable size. At first glance many of those test failures is due to port num

Re: [DISCUSS] - Apache Camel 2.10 release

2012-05-09 Thread Christian Schneider
Already done. https://issues.apache.org/jira/browse/CAMEL-5254 It is just the package import. I will also backport to 2.9.x. Dan came up with another issue that we will have with karaf 3. As Aries will be upgraded to 1.0 we will also have to check these imports. Not sure if this will make it t