camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: createRegistry() No longer Called in CamelTestSupport, Docs Wrong
Date Wed, 30 Oct 2013 17:13:43 GMT

What Camel version do you use from -> to in the upgrade.

What test case do you use. Can you post some code.
createRegistry is called in the Java CamelTestSupport class which works fine.

On Wed, Oct 30, 2013 at 5:29 PM, kraythe . <> wrote:
> In reading this url <> 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: ***

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message