You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by rwijngaa <ri...@gmail.com> on 2015/02/26 11:59:25 UTC

createRegistry not called in CamelSpringTestSupport

Hi,

I want to register a datasource in my junit test (that extends
CamelSpringTestSupport)
but noticed that createRegistry is only called when directly extending from
CamelTestSupport

    @Override
    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();
        jndi.bind("testDataSource", db);
        return jndi;
    }


How do i make this work in tests that extend from CamelSpringTestSupport ?

I'm using camel 2.12
Regards
Rino



--
View this message in context: http://camel.465427.n5.nabble.com/createRegistry-not-called-in-CamelSpringTestSupport-tp5763207.html
Sent from the Camel - Users mailing list archive at Nabble.com.