I think I see what is happening, but not why yet.

I have a component that stops its route explicitly. This is needed because
these components are dynamically created and destroyed. This done via:

        ccontext.stopRoute(deviceContext.scheduleRouteId)

But then later when the CamelContext itself (ccontext above) is stopped, the
same JmsConsumer is stopped again, which results in the NPEs. 

Looking at the javadocs it appears that I need to also call
ccontext.removeRoute(..) as well. (Trying that now...)


-- 
View this message in context: 
http://camel.465427.n5.nabble.com/NPE-on-JmsConsumer-shutdown-tp3386582p3386624.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to