In the Spring XML you can set a depends-on attribute on the <bean>.
And then make them depend on Camel by its id from the <camelContext
id="myCamel" ..>



On Tue, May 29, 2012 at 3:04 PM, Pascal <pas...@kabisa.nl> wrote:
> Hello,
>
> I'm currently experiencing the following; when shutting down my Camel
> application I regularly receive "Singleton bean creation not allowed while
> the singletons of this factory are in destruction" exceptions.
>
> The exceptions are thrown for beans used by my routebuilders, reference by
> the "beanRef" from the Java DSL. It seems that somehow these beans get
> shutdown before my routebuilder get's shutdown, could that be the case and
> if so, why?
>
> Here's some relavent information:
>
> * Camel version: 2.9.0.
> * Async JMS consumers.
> * Beans are called from Java DSL routebuilder using "beanRef".
> * Some of the routes use the throttler component.
>
> Code snippet (simplified for example):
>
>
>
> Exception stacktrace:
>
>
>
> Anyone got a clue?
>
> Thanks in advance!
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Singleton-bean-creation-not-allowed-while-the-singletons-of-this-factory-are-in-destruction-during-sn-tp5713684.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
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