Quarkus & Java 11-17 et GitHub Action feat. Matrix

La construction des applications modernes et dites cloud natives passent obligatoirement par la case CI/CD. Les pipelines de type GitHub Action d’applications permettent de standardiser les processus de constructions, de tests, de versionning ainsi que de déploiement des applications. L’avantage des pipelines de constructions est le rapide feedback aux développeurs des erreurs dans la chaîne de traitement. Ainsi, il est facile de modifier un élément de configuration pour voir le résultat. Les applications modernes nécessitent de pouvoir migrer des socles techniques de manière transparente. ...

June 8, 2022

How to manage Exceptions in a jBPM WorkItemHandler

When we develop a BPMN process we have to handle correctly Error. An Error can be raised by any component during the processus instance and specially into a Work Item Handler node. This kind of node in jBPM is a Java component implementing the WorkItemHandler interface. Usually in Java program we manage error via Exception mechanism. How to manage Exception inside jBPM WorkItemHandler custom component. To illustrate how to use Exception/Error I propose to create a sample error process. This example will demonstrate how jBPM can transform Java exceptions into BPMN errors, allowing for proper error handling within your business processes. ...

October 28, 2020

JConsole & Java Mission Control with JBoss EAP 7

During Red Hat summit, Red Hat releases the new version of its JBoss Application Server. JBoss App Server provides a new JMX Remote Management protocol to connect with. A common JMX tool is JConsole and we will see how to use it with remote mode. We also configure an other tool called Java Mission Control for a cooler JMX monitoring solution. These tools provide powerful capabilities for monitoring and troubleshooting Java applications in production environments. ...

July 19, 2016

Device IO and i2cdetect implementation

Today, we’re going to implement a quick tool available on the RaspberryPi using Java Device IO API. The i2cdetect utility is a simple I²C device scanner for your RaspberryPi that browses all I²C addresses to find which I²C devices are connected to your board. This tutorial demonstrates how to recompile the Device IO API and implement the i2cdetect functionality in Java, providing a platform-independent way to interact with I²C devices. i2cdetect with the Java Device I/O API implementation - a powerful tool for hardware detection and diagnostics on embedded systems. ...

March 9, 2016

Wildfly 9.0 w/ Docker, Offline CLI and HTTP/2

Following the release of Wildfly 9.0.0.Final and the previous post on enabling HTTP/2 via offline CLI, this article covers the same setup inside a Docker container. Docker simplifies middleware infrastructure deployment: open source, rich CLI tooling, automated build process, and straightforward runtime management. How to set up HTTP/2 in Wildfly 9.0.0.Final with offline mode via Docker. Prerequisites Docker must be installed and running. See the official documentation for installation. X509 Certificate HTTP/2 does not strictly require encryption, but most browsers only implement it over TLS. Create certificates as described in the previous post. ...

July 9, 2015

Wildfly 9.0 Offline CLI and HTTP/2

The Wildfly community has released Wildfly 9.0.0.Final. As mentioned in a previous post about Wildfly, this version brings several notable features. Two of them combine well: offline CLI and HTTP/2 support. In a datacenter context, the initial configuration should ideally happen without starting the full process or opening unnecessary ports. This post shows how to set up HTTP/2 using offline mode — useful for starting a JBoss instance with HTTP/2 already enabled. ...

July 3, 2015

Java Regex Group Name

Lors du développement d’un programme, il est souvent nécessaire d’utiliser les expressions rationnelles (ou regex). Ces expressions constituent un outil puissant pour rechercher des motifs spécifiques dans des chaînes de caractères ou vérifier qu’un texte correspond à un format particulier. Dans tous les langages modernes comme Java, Ruby ou Python, les bibliothèques de regex sont disponibles en standard. Cet article explore une fonctionnalité particulièrement utile de la bibliothèque standard Java : les groupes nommés. ...

June 18, 2015

Yubico OTP et JBoss EAP 6 ou Wildfly 8

Intégration de l’authentification forte avec Yubikey dans JBoss Yubikey est une clé de sécurité matérielle qui permet d’implémenter une authentification forte (2FA) lors de la connexion à un site web ou une application (services bancaires, webmail, applications d’entreprise, etc.). De plus en plus d’organisations intègrent cette technologie pour renforcer leur sécurité. Principe de fonctionnement Le principe est simple : l’utilisateur fournit un token à usage unique généré par sa clé Yubikey comme second facteur d’authentification. Ce token, cryptographiquement sécurisé, est vérifié par le système et change à chaque utilisation. Même intercepté, il ne peut pas être réutilisé, ce qui renforce considérablement la sécurité. ...

March 19, 2015