Web services Handler Chains tutorial

Handler Chains play a crucial role in intercepting and processing incoming and outgoing messages. They offer a flexible way to customize and extend the functionality of web services without modifying the core application logic. In this article, we’ll explore what Handler Chains are, how they work, and demonstrate their implementation with a practical example.

Read more

Getting started with JUnit 5 TestSuite

JUnit 5 provides powerful features for organizing and running tests efficiently. Test Suites, a collection of tests bundled together, allow you to execute multiple test classes or methods in one go. In this article we will show a step-by-step guide to create a JUnit 5 TestSyite with some practical examples. How to declare a JUnit … Read more

How to configure JBoss Maven Repository

This article provides a concise overview of the JBoss and Red Hat repositories, essential tools for building enterprise applications with Maven. By understanding these repositories and their contents, you can easily incorporate JBoss and Red Hat components into your Maven-based projects.

Read more

Default parameters for Java methods

Java lacks direct support for default parameter values as seen in some other programming languages. However, there are several techniques and patterns you can utilize to achieve similar functionality. In this tutorial, we’ll explore five different approaches to emulate default parameter values in Java. 1. Method Overloading Method overloading involves creating multiple versions of a … Read more

Kafka Streams Tutorial

Kafka Streams is a powerful and lightweight library provided by Apache Kafka for building real-time streaming applications and microservices. In this tutorial we will show a simple Kafka Streams example with Quarkus which shows how to perform stream processing tasks directly within the Kafka ecosystem, leveraging the familiar Kafka infrastructure to process and transform data in real-time.

Read more

Fastest way to sort an Array in Java

Sorting arrays efficiently is crucial for optimizing performance in Java applications. With numerous sorting algorithms and built-in methods available, it’s essential to identify the most efficient approach for different scenarios. Let’s delve into a comparative analysis of various sorting methods to determine the fastest way to sort a Java array. Introduction Sorting large arrays efficiently … Read more

How to use Cookies to persist HTTP Session data

In this tutorial, we will learn how to save and read the HTTP session state in a cookie using Servlets. By utilizing cookies, we can persist session information on the client-side, allowing us to maintain session state even if the user closes the browser or navigates away from the website. This technique can be beneficial … Read more