Not if both CamelContext's are in the same bundle, and the API is
exported in the same package name as well.

You need to have one bundle per CamelContext, and then for that bundle
you can import the API with the version range you want.

On Mon, Nov 9, 2015 at 9:47 PM, rwoolf <r...@rosswoolf.com> wrote:
> Does Camel or Blueprint provide a way for me to use the same dependency model
> as OSGi where I can specify a specific version of a bean to use in a camel
> context when running in Karaf?
>
> If I have two different versions/bundles of an API jar in Karaf (theAPI
> version 1, and theAPI version 2) is there a way to tell one camel context to
> use version 1 of the bundle and another camel context to use version 2 of
> the bundle?
>
> theAPI is wired as a bean in a route within a camel context.  My camel
> context is configured within a blueprint xml file.
>
> I know that when I create a bundle for Karaf I can declare dependencies
> based on a bundle version number (basic OSGi), but I can't see a similar way
> to do this at the camel level.
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Using-a-specific-bundle-version-in-Karaf-in-Blueprint-Camel-context-route-tp5773548.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to