This Week in JBoss - 11 August 2022

Hi everyone! It’s great to be back and bringing you another edition of the JBoss Editorial. As always there’s a lot of exciting news and updates from JBoss communities so let’s dive in.

WildFly Maven plugin to create container images

Use the wildfly-maven-plugin to create a Docker image of your application, by By Jeff Mesnil

Jeff explains how to use the wildlfy-maven-plugin and the new WildFly runtime image to build container images. The WildFly Maven plugin, currently in beta with Final planned for WildFly 27, offers a new, and very compelling, architecture to control the full runtime from the application pom.xml. Developers control the full customization of WildFly using feature packs, packaging scripts, and other artifacts. This approach ensures that the runtime fits the user’s application. Creating a container image is simply a matter of putting it in a runtime image that contains OpenJDK.

The WildFly team are starting an open conversation to bring additional synergies between the Docker and S2I images for WildFly that could benefit the whole community. The team are aiming to bring new capabilities, additional architectures (in particular linux/arm64), and newer versions of the JDK to all WildFly images. Be sure to check out Jeff’s post and find out how you can get involved!

Jakarta Bean Validation

Getting started with Jakarta Bean Validation, by Francesco Marchioni

Francesco takes a look at the Jakarta Bean Validation specification which allows you to express constraints on your model and create custom ones in an extensible way. His detailed post shows you how to write a constraint once and use it in any application layer. Given that Bean validation is layer agnostic, meaning that you can use the same constraint from the presentation to the business model layer.

Kogito Rules (Drools) with Java Inheritance

Kogito Rules (Drools) with Java Inheritance, by Jeff Taylor

In this article, Jeff explains how Kogito rules services can reason over application domain model facts that are represented using plain old Java objects, or POJOs, that use standard Java inheritance. DRL rules files can use POJOs as well as client applications that call the Kogito rules services.

Jeff explores two approaches for sharing Java subclasses between a Kogito rules service and a client application. The first approach isolates objects from each subclass into a JSON array while the second approach uses Jackson inheritance annotations to embed objects from each subclass for REST API calls that serialize and deserialize POJOs to and from JSOn.

Welcome Václav Muzikář!

New Keycloak maintainer: Václav Muzikář, by Bruno Oliveira

The Keycloak team has a new community maintainer! Hearty welcome to Václav Muzikář.

YouTube videos

From unmissable demos to brilliant chat about the latest Java trends, the JBoss community has some great video content for you:

See you next time

Hope you enjoyed this edition. Please join us again in two weeks for our JBoss editorial!

Don Naro