Hi, I've started using groovy + camel for doing various small batch
jobs like moving a set of messages from one jms queue to another, and I
have a usecase I think would be nice to have covered within the DSL if
possible:

An option to shutdown the route (and possibly the context) if a spesific
number of messages has passed through the route.

I.e. something like:

.from("activemq:someQueue").maxNumberOfMessages(39).to("activemq:otherQueue")

This is not very usefull when working on longrunning systems, but would
be very usefull when doing batchscripts or just wanting not to strain a
system.

Is this a good idea? Should I file a request for this in the JIRA?


-- 
Regards / Med vennlig hilsen
Tarjei Huse
Mobil: 920 63 413

Reply via email to