camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Stopping Camel - Stopping services
Date Tue, 18 Aug 2009 14:19:48 GMT
When Camel stop it stops its child services one by one.

It uses ServiceHelper for that, so it can stop an entire collection at once.

As the current code will remember if any exception was thrown and rethrow it.
I do wonder if that is not a mistake.

I think Camel should log a WARN in case some service threw an
exception but it should allow the code to continue to stop.
As Camel does multiple steps to stop it all, we could potential not
stop all services.

So basically I propose to change ServiceHelper to not be able to
rethrow exceptions but to log at WARN level.

Claus Ibsen
Apache Camel Committer

Open Source Integration:

View raw message