News

RSS Feed

Weld 2.4.2.Final

As you may know, CDI 2 (JSR 365) is in Public Review phase. That’s great news for early adopters. But for now, I am very pleased to announce another production-ready version of Weld 2.4 (CDI 1.2). See also the release details. Thanks to everyone involved in this release! Warning There is a regression in Weld 2.4.2.Final. The problem only occurs if a Security Manager is used. However...

Read more »

Weld Tip 4 - Testing CDI/Weld apps

Contents Using Weld in JUnit tests Arquillian as the chosen framework for testing Java EE application server Servlet environment Java SE environment Arquillian Weld Embedded container In this follow-up article of our Weld Tips series we are going to focus on testing of CDI/Weld applications. Let’s discover options for unit testing in the first part and then continue with integration testing. To set things straight - by integration testing we mean testing...

Read more »

Weld 3.0.0.CR1

I am very pleased to announce the release of Weld 3.0.0.CR1 (aligned with CDI 2.0-PFD). See also the release details. Thanks to everyone involved in this release! This version of Weld will be part of the JSR 365 Approval Ballot (watch CDI spec website for news). The Beta1 version of Weld 3 turned out to be sufficiently stable and so the first release candidate is mostly dedicated to cleanup and...

Read more »

Weld 3.0.0.Beta1

I am very pleased to announce the first Beta version of Weld 3.0.0 (CDI 2.0). See also the release details. Thanks to everyone involved in this release! This is an important milestone. CDI 2.0 is now considered "feature complete" and so the next Weld 3 versions should be mostly dedicated to cleanup and optimization. The next version will be Weld 3.0.0.CR1 (ETA in mid January). Finally, we would...

Read more »

Weld 2.4.1.Final

The development of Weld 3 (CDI 2) is underway. However, we don’t forget about the maintenance of the stable branch of Weld! So I am very pleased to announce the first bugfix version of Weld 2.4 (CDI 1.2). See also the release details. Thanks to everyone involved in this release! Notable fixes and improvements: removed false positive warning about Jandex version used (WELD-2231) fixed Groovy support - only filter out relevant...

Read more »

Weld Tip 3 - Boost performance of Weld apps

Contents Bootstrap Discovery mode Extensions Jandex Runtime Identify problematic components easily Lazy initialization of bean instances Drawbacks of @Dependent pseudo-scope Mapping CDI contexts to HTTP requests Bean identifier index optimization In this article we’re going to dive into various performance aspects of CDI applications. As you’ve probably noticed performance testing is sometimes tricky. First of all, it’s difficult to create a meaningful benchmark. One should understand the JVM...

Read more »

Weld Tip 2 - Development Mode

Contents How to enable the development mode Web application WildFly Weld SE How does it actually work? Probe UI What if I don’t have a webapp? Does it work offline? In this article we’re going to cover the special mode for application development. When enabled, a built-in tool called Probe provides a detailed insight into internals of a CDI application. Probe makes it easy to inspect: bean archives beans and...

Read more »

Weld Tip 1 - Logging

Contents Motivation Under the hood Set the log level and use categories to filter messages Monitoring bootstrap Registered beans Actions performed by extensions This is the first article from a series of short articles covering some useful Weld features. In this article we talk about logging. The topics for the next articles include: DEVELOPMENT MODE, PERFORMANCE, NON-EE ENVIRONMENTS and TESTING. Motivation Logging is usually no fancy stuff. But very often it’s the...

Read more »

Weld 2.4.0.Final

I am very pleased to announce the first stable version of Weld 2.4 (CDI 1.2). See also the release details. From now on, 2.4 is the current stable version of Weld and 2.3 is not actively developed anymore. Thanks to everyone involved in this release! Most of the new features were already introduced in First release candidate of Weld 2.4. To sum it up: Removed dependency on com.google.guava...

Read more »

First release candidate of Weld 2.4

Contents Removed dependency on com.google.guava:guava Enhanced version of javax.enterprise.inject.Instance Veto AnnotatedType not annotated with bean defining annotation @ActivateRequestScope moved to Weld API Improved rolling upgrades support Events - reflect the output of CDI-494 Probe - allow to filter unused beans Cleanup Initial Java 9 support Bugs WildFly Patch I am pleased to announce the first release candidate of Weld 2.4 (CDI 1.2). See also the release details. Thanks...

Read more »