camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: JMS connections survive undeployment
Date Mon, 03 Mar 2014 09:26:35 GMT

See lifecycle

Its better to do your logic in doStart|doStop or doShutdown of the
component class.

On Sun, Mar 2, 2014 at 10:10 PM, helander <> wrote:
> Would something like this work ?
> In my custom camel component I will create and start the pool in the
> createEndpoint method. Further I would add an eventnotifier for
> CamelContextStoppedEvent to the context. In the eventnotifier I would then
> stop the pool.
> The thinking from my side is to have a solution that would work
> independently how the context lifecycle is managed, it would only depend on
> my custom component (which is the user of the pool).
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:
Make your Camel applications look hawt, try:

View raw message