Supported CDI Containers

Apache OpenWebBeans

Pax CDI can be used with Apache OpenWebBeans 1.1.5 or higher using the pax-cdi-openwebbeans adapter. In addition to the adapter, you need to provision OpenWebBeans and its run-time dependencies.

Earlier versions of OpenWebBeans will not work due to OWB-668.

JBoss Weld 1.x

Weld 1.2.0.Beta1 is supported since Pax CDI 0.3.0 using the pax-cdi-weld adapter. In addition to the adapter, you need to provision weld-osgi-bundle and its run-time dependencies.

Earlier releases of Weld will not work in OSGi environments due to a global container singleton used by Weld, which does not match the container-per-bundle approach of Pax CDI.

JBoss Weld 2.x

2.1.0 and newer versions are supported since Pax CDI 0.5.0 using the pax-cdi-weld adapter. In addition to the adapter, you need to provision weld-osgi-bundle and its run-time dependencies.

Weld 2.0.x will not work in OSGi due to the same global container singleton found in Weld 1.1.x.

Pax CDI currently targets the CDI 1.0 specification, so new features of the CDI 1.1 specification are not guaranteed to work.

Dependencies

To find the correct set of dependencies for any of these supported configurations, have a look at org.ops4j.pax.cdi.test.support.TestConfiguration or at the Karaf features in pax-cdi-features.