On Fri, Nov 30, 2012 at 1:04 AM, Grant Sheppard
<[email protected]> wrote:
> Further to what I previously wrote, to me at least the root cause seems to be
> that the Spring context is shutdown immediately regardless of whether you've
> specified a shutdown timeout for the Camel context.
>
> Does anyone know whether it's possible to only shutdown the Spring context
> after the Camel context is closed??
>

Its not so easy with Spring to setup shutdown ordering. Though what
you can is to use "depends-on" on the <bean> attributes,
and possible somehow tell spring that your beans is dependet on <camelContext>.

You need to set the id attribute in <camelContext> so your <bean> can
depend-on that id.



>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/TransactionErrorHandler-fails-if-Apache-Camel-context-is-shutting-down-tp5723423p5723424.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to