5 Replies Latest reply on Apr 27, 2011 5:37 PM by davsclaus

    Graceful shutdown in camel - differences btw 2.2 and 2.6

    guest

      Hello, I have a camel routes (spring based) which I've been running on smx 4.2 for a while.  I recently took the plunge and updated my smx to 4.3 which contains a newer camel (2.2 vs 2.6).  I've noticed that now I get alot of Exceptions on shutdown which I've never had done before.  It seems like there some shutdowns ordering differences between the 2 camel versions ( I did not define any graceful shutdown stuff in either case).  From what I see it looks like the beans in spring gets destroyed, yet the routes are still doing its thig??  Thanks for your help...

       

       

      Alot of these type of exceptions pop up:

       

      org.apache.camel.RuntimeCamelException: org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'JaxUtilHelper': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

      org.apache.camel.RuntimeCamelException: org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'JaxUtilHelper': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

           at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139)[68:org.apache.camel.camel-core:2.6.0]

           at org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookup(PropertyPlaceholderDelegateRegistry.java:47)[68:org.apache.camel.camel-core:2.6.0]

           at org.apache.camel.component.bean.RegistryBean.lookupBean(RegistryBean.java:136)[68:org.apache.camel.camel-core:2.6.0]