Contexts and Dependency Injection for Java Specification (original) (raw)

CDI 1.1 & 1.2

CDI 1.1 focuses on improving CDI 1.0 and CDI 1.2 is a minor update correcting issues in 1.1:

CDI 3.0

CDI 3.0 is part of Jakarta EE 9. The Jakarta EE 9 release is source code incompatible with previous releases as the package name has changed from javax.enterprise.* to jakarta.enterprise.*

There were no functional or semantic changes in the specification or APIs.

Jakarta CDI 3.0 Page

CDI 2.0 (Jakarta)

CDI 2.0 is part of move of Java EE 8 to Jakarta EE 8. The API and specification remain semantically the same, but references to Java EE and associated technologies have been updated to use Jakarta EE and the related updated names.

The source repositories have moved under the Eclipse EE4J organization to the following repositories:

Jakarta CDI 2.0 Page

What is CDI?

Contexts and Dependency Injection for Java EE (CDI) 1.0 was introduced as part of the Java EE 6 platform, and has quickly become one of the most important and popular components of the platform.

CDI defines a powerful set of complementary services that help improve the structure of application code.

Latest Release

The latest release of CDI is 3.0. You can download the spec or browse the javadoc.

CDI 1.0

Contexts and Dependency Injection for Java EE (CDI) 1.0 was introduced as part of the Java EE 6 platform, and has quickly become one of the most important and popular components of the platform.

CDI defines a powerful set of complementary services that help improve the structure of application code.

Below is the current list of servers supporting CDI, also listed is the implementation used. Only the last servers major version are listed

Oracle GlassFish 4.1+

using Weld 2.2.x / CDI 1.2

TMAX JEUS 8

using Weld 2.0 / CDI 1.1

WildFly 8.2.0

using Weld 2.2.6 / CDI 1.2

Hitachi Cosminexus v 1.0

using Weld 2.0 / CDI 1.1

JBoss EAP 6.3

using Weld 1.1.23 / CDI 1.0

IBM WebSphere 8.5.x & Liberty profile

using OpenWebBeans 1.2.x / CDI 1.0

Fujitsu Interstage v10.1 / Windows Azure

using Weld 1.1.x / CDI 1.0

Oracle WebLogic 12

using Weld 1.1.3 / CDI 1.0

Apache Geronimo 3.0.1

using OpenWebBeans 1.1.1 / CDI 1.0

JBoss AS 7.1.1

using Weld 1.1.5 / CDI 1.0

Caucho Resin 4.0.17

using CanDI 1.0 / CDI 1.0

Apache TomEE 1.6

using OpenWebBeans 1.2.6 / CDI 1.0

SAP NetWeaver Cloud

using OpenWebBeans 1.x / CDI 1.0

JOnAS 5.3.0

using Weld 1.1.10 / CDI 1.0