camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas A." <>
Subject Not possible to catch an java.lang.Error.
Date Tue, 30 Nov 2010 09:52:12 GMT


I have been experiencing some problems with OutOfMemoryError in my
production environment and I would like to shut down the application when
this occurs. I thought of doing this by catching java.lang.Error and then
shutting down the app. However this is not possible as there's only the
possibility to throw and catch Exceptions in Camel. This is of course very
sane since you shouldn't be expecting Errors to pop up in your app. Any
ideas how to achieve this?
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message