Hi everyone,

a business requirement of my project is to process a file from directory,
split and store each single row in Active MQ. 
Then a consumer will consume the queue invoking a Rest Service by jetty
client.

So, there is a little problem... when the file csv has many lines (~50000
rows) to process.

I already optimized my route following this topic
http://www.davsclaus.com/2011/11/splitting-big-xml-files-with-apache.html in
order to process quickly the file with split and store in AMQ.

But, now i need to process messages stored in AMQ slowly in order to don't
overload a Rest Service Interface... Ex. n messages at time each five
minutes

Could you please provide me the best strategy to do it or example or
suggestions to study?

I'm seeing ThrottlingInflightRoutePolicy and AMQ Parameter Configuration but
i don't know if this is right way.

I work with JBossFuse 6.2.0 (Camel 2.15.1 and Active MQ 5.11)

Thanks in advance

Best Regards

Michele



--
View this message in context: 
http://camel.465427.n5.nabble.com/Best-Strategy-to-process-a-large-number-of-rows-in-File-tp5779856.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to