Weld is the reference implementation of CDI: Contexts and Dependency Injection for the Java EE Platform which is a JCP 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 (formerly JBoss AS) and add the following code to the pom.xml file of your application:

<dependency>
   <groupId>javax.enterprise</groupId>
   <artifactId>cdi-api</artifactId>
   <version>1.2</version>
   <scope>provided</scope>
</dependency>

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

Weld Book

The latest book on Weld is now available:

Latest News

  • Programmatic lookup improvements

    2016-5-18

    Weld team is considering adding an enhanced version of javax.enterprise.inject.Instance to the Weld API. Explore the possibilities... more


  • Weld 3.0.0.Alpha16

    2016-4-28

    Start playing with metadata configurators included in the next experimental version of Weld (aligned with CDI 2.0.Alpha4). more


  • Weld 2.3.4.Final

    2016-4-22

    The next version of the stable 2.3 branch (CDI 1.2, WildFly 10) has been released. more


  • Weld meets Vert.x

    2016-4-11

    Vert.x defines itself as "a toolkit for building reactive applications on the JVM". Sounds cool and trendy. Weld, on the other hand,... more


  • Weld 2.3.3.Final

    2016-2-12

    The next bug-fix release for the stable 2.3 branch (CDI 1.2 implementation) has been released. more