In reading this url <http://camel.apache.org/camel-test.html> it says that we should override createRegistry() in order to bind additional objects into the registry in a test. unfortunately this doesn't work as the old startup has been changed in favor of the option to initialize per class or per method. Now I have to do the following code to get something in the registry. In my createRouteBuilder method I write:
*final* SimpleRegistry reg = (SimpleRegistry) ((PropertyPlaceholderDelegateRegistry) getContext().getRegistry()).getRegistry(); reg.put("testdb", dataSource); The documentation needs to be updated or, better yet, createRegistry needs to be put back into the loop. If you override it now and put inside a trace println, it will never get printed. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39*