The problem arises when i stop all non-default camel contexts and recreate them later again after a route or property is changed for example. Then all camelContexts are gone (except the one that was in a spring xml file that rereads the route xmls every xx-seconds).
I also got this then: Caused by: java.lang.NullPointerException at org.springframework.jms.support.JmsAccessor.createSession(JmsAccessor.java:196) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:457) at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:235) at org.apache.camel.component.jms.JmsProducer.doSend(JmsProducer.java:413) at org.apache.camel.component.jms.JmsProducer.processInOnly(JmsProducer.java:367) at org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:153) -- View this message in context: http://camel.465427.n5.nabble.com/Recommended-practices-for-dynamically-creating-and-removing-camel-routes-and-camel-contexts-tp5771978p5772131.html Sent from the Camel - Users mailing list archive at Nabble.com.