Blog Layout

Observing Java Applications Running via Docker Compose Using OpenTelemetry

An easy non-obtrusive way to collect data about your dockerized app without changing your existing docker-compose.yml or docker files! This is just a neat trick that I discovered when I was trying to collect OTEL data about my application which was running via Docker Compose. I was trying to understand more about the code using tracing. However, I definitely didn’t want to modify …

Read More »

Sealed Interfaces and Pattern Matching: A Quick Dive into Java’s Modern Capabilities

Sealed classes in Java are a new feature that provides a way to restrict the classes that can inherit from a superclass or extend an interface. This new language feature enhances the encapsulation and provides more control to developers over their codebase. In this tutorial, we will explore sealed classes, how to use them to find all subclasses, and how …

Read More »

We All Grow Older, But Do Our Projects Really Have To?

We have all likely worked on a project, that has grown quite “mature” over time, who knows we might even have forgotten to keep our dependencies up to date? Mayhap we finally got the green light to move from JDK 8 to 17? This will quite likely entail a lot of library updates, and maybe some interesting changes (cough javax …

Read More »

Starting Apache Kafka – Java Producer & Consumer (Windows 10)

This is part 2 of a two part series on Starting Apache Kafka Server, Configuring Kafka Topic, and Creating a Core Java Based Kafka Consumer, as also a Core Java Based Kafka Producer. All this is demonstrated in step-by-step examples. All of this is for Java v8.0, Apache Kafka v3.4 on Windows 10. Part 1 focused on Kafka Consumer and …

Read More »

Schrijf je in voor de NLJUG Innovation Award

De NLJUG reikt dit jaar voor de vijfde keer tijdens J-Fall de NLJUG Innovation Award uit. Deze wordt toegekend aan het meest innovatieve project dat heeft plaatsgevonden. De onafhankelijke jury van Java experts beoordeelt elke voordracht. Het kan daarbij gaan om projecten die succesvol, innovatief, verantwoord en/of omvangrijk zijn. Elk bedrijf dat een project inschiet krijgt tevens twee J-Fall conferentie …

Read More »

Book Review: “OpenJDK Migration for Dummies”

The subject of Java licensing and OpenJDK migration is complex and vital to many software engineers. I am no different. It’s a topic that’s often shrouded in legal jargon and technicalities, making it difficult to approach. “OpenJDK Migration for Dummies” by Simon Ritter offers a fresh perspective, breaking down these challenges into digestible segments. It directly speaks to my core …

Read More »

Reading the temperature, humidity, and pressure from a BME280 Sensor with Java, Pi4J, I2C, SPI, and JBang

To make it as easy as possible to get started with Java on the Raspberry Pi to interact with electronic components, I started a new section on the Pi4J website with JBang examples. In this tutorial, I want to show you how you can read the temperature, humidity, and pressure from a BME280 Sensor. What Is Used? As explained on …

Read More »

The Inner Workings of Safepoints

A Java thread in the JVM regularly checks whether it should do extra work besides the execution of the bytecode. This work is done during so-called safepoints. There are two types of safepoints: local and global. At thread-local safepoints, also known as thread-local handshakes, only the current thread does some work and is therefore blocked from executing the application. At …

Read More »

Preparing for JDK 21: A Comprehensive Overview of Key Features and Enhancements

As we inch closer to the release of JDK 21 in September (next month!), it’s crucial to familiarize ourselves with the transformative features and improvements this version is poised to bring to the Java ecosystem. Let’s embark on a comprehensive tour of the noteworthy changes and enhancements in JDK 21. Revising the Balance of Serviceability and Performance with JEP 451 …

Read More »

Book Review: “Designing APIs with Swagger and OpenAPI”

Disclaimer: this post includes affiliate links; I may receive compensation if you purchase the book from the different links provided in this post. This review is about Designing APIs with Swagger and OpenAPI by Joshua S. Ponelat and Lukas L. Rosenstock from Manning. I’m continuing my API journey by reading books, viewing relevant YouTube videos, and reading relevant IETF RFCs. …

Read More »