for the aggregator...use both completionSize and completionTimeout to make
sure exchanges aren't left hanging (forever theoretically).  In general, if
you use a shutdown strategy timeout greater than your completionTimeout and
you should be covered (assuming the rest of your route if relatively quick). 

Also, can you can "shutdownRoute(ShutdownRoute.Defer)" on the route to make
sure it doesn't shutdown before exchanges have completed (beware of using
this with external endpoint though or it may never shutdown)...

"shutdownRunningTask(ShutdownRunningTask.CompleteAllTasks)" applies to batch
consumers (file, etc) and will defer shutdown until all pending exchanges
have complete


cmveal wrote:
> 
> I've been trying to figure out how graceful shutdown works with aggregator
> and shutdownRunningTask="CompleteAllTasks".
> 
> If I use a completionInterval="5000", would that mean that my messages
> successfully get processed given that shutdown takes longer than 5
> seconds? Would shutdownRoute="Defer" help in this case?
> 
> What would happen if I use completionSize=5 and I only have 4 messages?
> Would these messages get processed properly prior to shutdown?
> 


-----
Ben O'Day
IT Consultant -http://benoday.blogspot.com

--
View this message in context: 
http://camel.465427.n5.nabble.com/Aggregator-with-shutdownRunningTask-tp4385211p4385583.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to