How to use the ManagedExecutorService to submit tasks

The Jakarta EE Concurrency API which outlines a standard way for executing tasks in parallel on a Jakarta EE Container using a set of Managed resources. In this excerpt from (Practical Enterprise Application development) we will provide a short introduction to the Concurrency Utilities and we will learn how to leverage asynchronous tasks using the … Read more

How to configure Load Balancing Groups in WildFly

In this tutorial we will learn how to configure Load Balancing Groups with mod_cluster so that requests for your applications are not spread randomly across the full WildFly cluster. Application requests will be sent first to other nodes available in a given Balancing Group before it is sent to another Load Balancing Group. Our starting … Read more

How to restrict access to mod_cluster Manager

The mod_cluster distribution includes a manager application which can be used to test your cluster topology and manage as well deployed applications across the cluster. In this tutorial we will show how to protect access to the mod_cluster_manager application with a password. In order to protect our mod_cluster_manager application we will use a standard Apache … Read more

Building Quarkus native applications with Mandrel

Mandrel is a downstream open source distribution of GraalVM edition which can be used to create native builds for Quarkus applications. Quarkus applications require one essential tool of GraalVM – the native-image feature – which is what actually produces native executables. Mandrel let us to have GraalVM bundled on top of OpenJDK 11 in RHEL … Read more

How to trace JDBC statements with JBoss and WildFly

This tutorial covers how to trace JDBC Statements running on the top of WildFly application server or JBoss Enterprise Application Platform. There are multiple ways to trace SQL Statements: Use Hibernate/JPA properties (if your application is using it) Configure P6Spy tool on WildFly (if you are issuing plain SQL Statements) Configure your JDBC Driver to … Read more

Solving java.io.IOException: Invalid secret key format

This issue happens when a Java module is unable to access com.sun.crypto libraries earlier than its Classloader modules. You will typically see a Stack trace which looks like this: Caused by: java.io.IOException: Invalid secret key format at com.sun.crypto.provider.JceKeyStore.engineLoad(JceKeyStore.java:856) at java.security.KeyStore.load(Unknown Source) at org.picketbox.util.KeyStoreUtil.getKeyStore(KeyStoreUtil.java:201) at org.picketbox.util.KeyStoreUtil.getKeyStore(KeyStoreUtil.java:151) at org.picketbox.plugins.vault.PicketBoxSecurityVault.getKeyStore(PicketBoxSecurityVault.java:688) One way to solve this issue is to … Read more

Getting ready for Jakarta EE 9

In this article we will give an overview of the status of the upcoming Jakarta EE 9 and its impact on our applications. Also we will check when we will be able to have our first application tests in the Jakarta EE 9 environment Jakarta EE 8 was substantially just a change in project name … Read more

JSF tutorial for Java developers

Jakarta Server Faces 3 is the current specification for JSF which runs on Jakarta EE containers such as WildFly application server. In this JSF tutorial we will cover the main features of JSF which are coming from the earlier JSF releases.Please note: if you are moving to Jakarta EE 9, Jakarta Faces 3.0 has a … Read more

Categories JSF

Configuring RESTEasy Applications

Since WildFly 20, you can configure RESTEasy through the MicroProfile Config project (https://github.com/eclipse/microprofile-config). The use of MicroProfile Config offers to REST developers a plenty of flexibility in controlling runtime configuration. If you want to read more details about MicroProfile Config API, we recommend checking this tutorial: Configuring Microservices with MicroProfile Configuration In a nutshell, the … Read more

Configuring Timeout policies for your EJBs

In the most recent version of WildFly (20) it is now possible to configure a default timeout setting for all your Stateful beans. Let’s recap in this article all timeout policies you can define for your EJBs: StatefulTimeout: This timeout policy is used to force passivation of Stateful beans which are inactive for a certain … Read more