streaming big xml file witht tokenizer

2015-04-23 Thread majid
the download and immediately after that I start my parser route to get the records ? Cheers Majid -- View this message in context: http://camel.465427.n5.nabble.com/streaming-big-xml-file-witht-tokenizer-tp5766254.html Sent from the Camel - Users mailing list archive at Nabble.com.

RSS Feed consumer

2015-04-16 Thread majid
option to stop processing the file once I reach the last feed ? Cheers Majid -- View this message in context: http://camel.465427.n5.nabble.com/RSS-Feed-consumer-tp5765855.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel stop routes and start

2015-03-12 Thread majid
again, the camel context seems to have somewhere in the cache the old file instead the new one I have put in the folder. Does anyone have an idea on how I can mark everything as completed even if the I stop the process in the middle ? Cheers Majid -- View this message in context: http://camel

Re: Splitting xml - Send all items or send XML to Error Queue

2015-03-11 Thread majid
You can put your validated items into a temp seda queue and once you complete the splitting of your file and you don't find any invalid item, then start consuming the temp seda queue, otherwise just stop. -- View this message in context:

Re: Camel stop routes and start

2015-03-11 Thread majid
I finally stopping the whole camel context. I am wondering how costly is the operation of creation many camel contexts (one per customer) ? I will have around 100 camel context in my JVM, is it expensive ? or should I use only one ? -- View this message in context:

Camel processor memory leak

2015-03-10 Thread majid
Hi all, I have a memory leak issue when I stop all my routes, I am still able to see my processor in the memory snapshot : public class ErrorHandlerProcessor implements org.apache.camel.Processor { private Logger logger = Logger.getLogger(getClass()); @Override public void

Re: Camel processor memory leak

2015-03-10 Thread majid
Hi All, I fixed the issue. Basically, when errorHandler(deadLetterChannel(seda:error)) is global to a route, some mbeanserver.NamedObject is retaining a reference to the processor. I used instead @Override public void configure() throws Exception { from(seda:error)

Re: Camel stop routes and start

2015-03-10 Thread majid
Hi Harald, Yes, I can but I am using the same camel context for other tasks, I stop these routes and restart them when need and keep others. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-stop-routes-and-start-tp5763950p5763957.html Sent from the Camel - Users

Re: On Route Completion when using the aggregator

2015-03-09 Thread majid
Hi Harald, Yes, it is working :) Thanks for the trick -- View this message in context: http://camel.465427.n5.nabble.com/On-Route-Completion-when-using-the-aggregator-tp5763746p5763869.html Sent from the Camel - Users mailing list archive at Nabble.com.

On Route Completion when using the aggregator

2015-03-06 Thread majid
Hi All, I have 2 camel routes 1st one is streaming and parsing an XML file, then aggregate a chunk of 1000 items and send it a seda queue. 2nd route is persisting these items to the database using jdbc batch. I want on the completion of my second route, to run a finalize process only once at the

Re: On Route Completion when using the aggregator

2015-03-06 Thread majid
CamelSplitComplete is in the property of the exchange, not in the header. Yes, I enabled the tracing and also I run my app in debug mode to check the properties and headers of the exchanges of my second route, and CamelSplitComplete is always false. -- View this message in context:

Re: On Route Completion when using the aggregator

2015-03-06 Thread majid
Thanks Harald I was thinking to do exactly the same thing, send a signal to the seda queue of the second route. The only problem I have with this approach is that once I get the signal, I need to wait until the last aggregated items to complete processing in this route, which mean I have to put