Introduction to Jimmer ORM
1. Introduction In this tutorial, we’re going to review the Jimmer ORM framework. This ORM is relatively new at the time of this article, but it has some promising features. We’re going to review...
View ArticleUsing a Different Client Certificate per Connection in Java
1. Introduction In this tutorial, we’ll configure Java’s SSLContext to use different client certificates based on the target server. We’ll start with a straightforward approach using Apache...
View ArticleCreating an AI Agent in Java Using Embabel Agent Framework
1. Overview Modern applications are increasingly using Large Language Models (LLMs) to build solutions that go beyond simple question-answering. To achieve most real-world use cases, we need an AI...
View ArticleExecuting SQL Scripts in H2 Database
1. Overview When working with Spring Boot applications, especially in integration tests, using the H2 in-memory database offers a lightweight and fast option for simulating real database interactions....
View ArticleJava Weekly, Issue 604
1. Spring and Java >> JEP 515: Ahead-of-Time Method Profiling [openjdk.org] In JDK 25, we’ll get an important feature for AOT, which enables the HotSpot JVM to use execution profiles collected...
View ArticleIntroduction to Smithy
1. Introduction Smithy is a way to describe our APIs, along with a set of supporting tooling that enables us to generate API clients and servers from this definition. It allows us to describe our API...
View ArticleHow to Avoid Busy-Waiting in Java
1. Introduction In this tutorial, we’ll explore what it means when a thread is busy-waiting. We’ll examine why this approach isn’t ideal and how it can lead to wasted CPU resources. Finally, we’ll...
View ArticleChange Highlight Color in Eclipse
1. Introduction Changing the highlight color in Eclipse means customizing how different elements appear in the editor to improve readability and personalize the coding environment. This includes...
View ArticleRestart a Job on Failure and Continue in Spring Batch
1. Introduction Spring Batch provides robust mechanisms for restarting failed jobs. These mechanisms allow jobs to resume processing from the point of failure. This capability is essential for handling...
View ArticleHow to Use ParameterizedTypeReference in Java
1. Introduction When working with generic types in Java, we’ll often face type erasure. This becomes particularly challenging when we’re making HTTP requests that return generic collections or complex...
View ArticleUnderstanding Message Delivery with Multiple Partitions
1. Overview Apache Kafka is a distributed streaming platform that handles high-throughput data feeds through a partition-based architecture. When we send messages to a Kafka topic, they’re distributed...
View ArticleShould Jackson’s ObjectMapper be Declared as a Static Field?
1. Introduction Jackson’s ObjectMapper sits at the center of most Java JSON pipelines. Because building and configuring it touches the classpath, discovers modules, and warms several internal caches,...
View Article