Weld is the reference implementation of CDI: Contexts and Dependency Injection for the Java EE Platform which is the Java standard for dependency injection and contextual lifecycle management and one of the most important and popular parts of the Java EE platform.

Weld is integrated into many Java EE application servers such as WildFly, JBoss Enterprise Application Platform, GlassFish, Oracle WebLogic Server, WebSphere Application Server and others. Weld can also be used in a Servlet-only environment (Tomcat, Jetty) or plain Java SE environment.

Try Weld Today

To use Weld today, download the WildFly server (formelly JBoss AS) and add the following code to the pom.xml file of your application:


For alternative ways of using Weld, see the download section or the reference documentation.

Weld Book

The latest book on Weld is now available:


  • Weld 2.3.0.Final released!

    2015-9-18: Martin Kouba

    Weld 2.3.0.Final has been just released! From now on, 2.3 is the current stable version of Weld and 2.2 is not actively developed anymore - i.e. no new features are added, only bugs will be fixed. Weld 2.3 will remain a CDI 1.2 implementation. We are incrementing the minor version...

    Read more »
  • JDK 8u60 reveals a problem in Weld

    2015-9-15: Martin Kouba

    Recently released JDK 8u60 has revealed a problem in Weld where not all synthetic members were ignored correctly. This has been fixed in 2.2.16.Final, 2.3.0.CR2 and 3.0.0.Alpha14 (not released yet). However, if not using a lambda referencing an event/disposed parameter inside an observer/disposer method, your application is most probably not affected. See also...

    Read more »
  • Weld team changes

    2015-9-8: Jozef Hartinger

    I am pleased to announce a couple of changes coming to the Weld team: First of all, Martin will be taking over leadership of the project. Martin has proven himself to be an excellent engineer over all the years and I am happy that I can leave the project in his hands. His...

    Read more »