Re: doTry docatch slow down the execution

2013-03-12 Thread Raul Kripalani
In your test, do exceptions happen? How many inside the 15.000-line file? What does the direct:AEDFormatException route do? Please post its code. It could be the reason for slowness. Thanks. On 12 Mar 2013 08:23, "Jean Francois LE BESCONT" wrote: > Hey ! > > I have found a strange thing with th

Re: doTry docatch slow down the execution

2013-03-12 Thread Raul Kripalani
Btw - It looks like you decided to go with the approach I suggested. First enrich, then split. Is the aggregation strategy storing the SQL results in a property, which you access later? On 12 Mar 2013 08:23, "Jean Francois LE BESCONT" wrote: > Hey ! > > I have found a strange thing with the doTr

Re: doTry docatch slow down the execution

2013-03-12 Thread Jean Francois LE BESCONT
Yes Raul , I opted for your suggestion,and it works fine ! Yes I put it in a property and acces it later ( has you suggest :) OH I ommited to say that my file contains only valid line, the direct:AEDFormatException which is a reject route is never call for the moment. 2013/3/12 Raul Kripalani

Re: doTry docatch slow down the execution

2013-03-12 Thread Raul Kripalani
Ok. Obviously there will be more overhead in capturing the exception and re-throwing under a different exception type, but it should not make the route 12x slower. Something's going on. Do you have any additional error handlers? onExceptions, errorHandlers, etc.? Could you paste your entire conf

Re: doTry docatch slow down the execution

2013-03-13 Thread Raul Kripalani
So you append each invalid record to a file (direct:AEDFormatException). For *each* rejected line, this process occurs: the FileInputStream is opened, positioned at the end, the line is written, the FileInputStream is closed. That could explain some of the slowness. Let's gather some performance

Re: doTry docatch slow down the execution

2013-03-15 Thread Christian Müller
Have a look at the following tests: https://github.com/muellerc/apachecon-na-2013/tree/master/file-component/src/test/java/org/apache/cmueller/camel/apachecon/na2013 The are performance comparison between the different possibilities... Best, Christian On Thu, Mar 14, 2013 at 12:53 AM, Raul Kripa