I had to fix one little issue, by calling setParentBeanFactory also, as
shown... and logged a message.
private void attachParent() {
if (applicationContext != null && parentApplicationContext !=null) {
applicationContext.setParent(parentApplicationContext);
applicationContext.getBeanFactory().setParentBeanFactory(parentApplicationContext);
log.info("attached parentApplicationContext
"+parentApplicationContext.getDisplayName()+" to
"+applicationContext.getDisplayName());
}
}
--
View this message in context:
http://www.nabble.com/Controlling-the-ApplicationContext-used-by-a-RouteBuilder-tp17594236s22882p17727409.html
Sent from the Camel - Users mailing list archive at Nabble.com.