Hi Brad,

I’ve been working on Camel CDI in OSGi for a while and have ported my original 
samples to be tested in Karaf, which can be found in [1]. These samples 
exercise the portability of Camel CDI examples on OSGi, thus do not leverage 
the SCR equivalent annotations that PAX CDI provides. So the objective here was 
to prove technically the portability of "plain" Camel CDI applications on OSGi. 
The main outcome has been captured in [2], which highlights the difficulty to 
make the CDI implementations subclass proxying mechanism working seamlessly in 
a class loader constrained environment such as OSGi. 

Then, from the functional standpoint, Guillaume Nodet has been working lately 
on improving the SCR-like annotation support [3]. Though I haven’t found the 
time yet to test it with Camel CDI in particular.

[1]: 
https://github.com/astefanutti/camel-cdi/tree/master/envs/osgi/src/test/java/org/apache/camel/cdi/osgi
[2]: https://github.com/ops4j/org.ops4j.pax.cdi/pull/30
[3]: 
https://github.com/ops4j/org.ops4j.pax.cdi/tree/master/pax-cdi-api/src/main/java/org/ops4j/pax/cdi/api

Antonin

> On 22 Aug 2016, at 16:33, Brad Johnson <brad.john...@mediadriver.com> wrote:
> 
> Has anyone used Camel CDI in an OSGi environment?  Does it work well or at
> least OK there?
> 
> Brad

Reply via email to