How to Secure Keycloak with HTTPS

When it comes to securing Keycloak, an open-source identity and access management solution, using HTTPS is a crucial step in protecting user credentials and other sensitive data. In this article, we’ll explore the benefits of using HTTPS with Keycloak and provide a step-by-step guide on how to enable HTTPS in your Keycloak installation.

Read more

Building a simple Vert-x application

Vert.x is a powerful toolkit for building reactive, event-driven applications on the Java Virtual Machine (JVM). It provides an asynchronous, non-blocking programming model that allows you to handle high concurrency with ease. In this tutorial, we will walk through the process of creating a basic Vert.x application from scratch. We’ll cover the essential concepts and … Read more

How to run Jakarta Batchlets with WildFly

Jakarta Batchlets provide a streamlined approach to handle non-data-oriented processing tasks within batch jobs. Whether you are new to batch processing or familiar with Jakarta Batch, this tutorial will guide you through the essentials of using Jakarta Batchlets effectively. Use Cases for Batchlets vs standard Batch executions Batch processing plays a vital role in modern … Read more

How to monitor JMX Metrics using Byteman

In this article, we will dive deep into the world of JMX metrics collection using Byteman, a powerful Java agent, and explore how it can help your monitoring and optimization efforts. Whether you are a seasoned developer or an operations professional, this guide will equip you with the knowledge and tools to unlock the full potential of your application. Let’s embark on this journey to harness the power of JMX metrics with Byteman and take your monitoring to new heights.

Read more

Configuring OpenId Authorization with Keycloak

OpenID Connect is a widely-used authentication protocol that allows users to authenticate themselves to a relying party (RP) website or application using their existing credentials from an identity provider (IDP). While OpenID Connect is primarily an authentication protocol, it also provides some support for authorization through the use of client resources and policies. In this article, we’ll take a closer look at OpenID Connect client authorization and why it matters.

Read more

How to Fix the HTTP 415 “Unsupported Media Type” Error with JSON

If you’re a developer who has worked with web APIs, you might have come across the HTTP 415 “Unsupported Media Type” error. This error occurs when the server doesn’t support the media type that’s being used in the request. In this tutorial, we’ll discuss one common cause of the HTTP 415 error and how to fix it.

Read more

Getting started with Jakarta Bean Validation

This article covers the Jakarta Bean Validation specification which allows you to express constraints on your model and create custom ones in an extensible way. Within it, we will cover the legacy from Jakarta EE Validation and the new features available since Jakarta EE 10.

Read more

How to catch multiple Exceptions in Java

When working with Java, it’s common to encounter situations where you need to handle multiple exceptions. Fortunately, Java provides a simple and efficient way to do this using the catch block. In this tutorial, we’ll explore how to catch multiple exceptions in Java, along with some tips and code snippets to help you get started.

Read more

Java Finally Block – When it is not executed ?

The finally block in Java is used to define a section of code that will always be executed, regardless of whether an exception is thrown or caught. However, there are certain conditions under which the finally block may not execute. In this tutorial, we’ll explore these conditions and provide some code snippets to illustrate them. Hint: read it through as this is a common interview question!

Read more