camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From owain <ow...@integration.technology>
Subject Re: It IS possible to import routeContext in OSGi Blueprint
Date Wed, 01 Jun 2016 11:04:08 GMT
Thanks guys for the reply.  This has really helped me tidy my unit tests up. 
I hadn't realised that I could load xml from the test resources directory
from getBlueprintDescriptor().  

Interestingly loadConfigAdminConfigurationFile() needs the full path from
the module route.  i.e. 

    return new String[] {
            "src/test/resources/blueprint/my.config.stuff.cfg",
            "my.config.stuff"     // Persistent ID
    };

With some naming standards I could refactor the route name as a parameter
and generate all of the inputs to these calls.  Or perhaps not.

Thanks again.

O.



--
View this message in context: http://camel.465427.n5.nabble.com/It-IS-possible-to-import-routeContext-in-OSGi-Blueprint-tp5783323p5783349.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message