On Wed, May 30, 2012 at 9:33 AM, Karel Zabloudil
<[email protected]> wrote:
> I'm using servicemix 4.4.1 and I need to change the order of shutdown steps.
> Right now servicemix destroy Spring beans first (calls destroy-methods) and
> then shutdown the Camel routes. I need it in reverse order. First shutdown
> the routes and then call the destroy-method of the beans. Is it possible to
> change the order ?
>

In the Spring XML tag you can use the depends-on attribute to tell Spring.
Then you can configure your beans to depend on Camel

eg

<camelContext id="myCamel">
   ...
</camelContext>

<bean id="foo" class="..." depends-on="myCamel"/>


> thanks,
>  Karel
>
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/Shutdown-order-of-Camel-routes-and-Spring-beans-tp5713430.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.



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

Reply via email to