-
Enterprise Java

How to Restart Failed Jobs in Spring Batch
In batch processing, jobs can fail for various reasons, including data issues, network problems, or unexpected exceptions. Restarting a failed…
Read More » -
Core Java

Spring ParameterizedTypeReference Example
Deserializing generic types in Java can be challenging because of type erasure, which removes generic type information at runtime. This…
Read More » -
Core Java

Static ObjectMapper in Java: Performance and Design Considerations
Jackson’s ObjectMapper is a versatile and flexible tool for JSON processing in Java. However, how you manage its lifecycle, whether…
Read More » -
Core Java

Avoiding Busy Waiting in Java
Busy-waiting is a common but inefficient approach in concurrent programming. In this article, we explore what busy-waiting means, why it…
Read More » -
Core Java

How to Change a Key Alias in a Java Keystore
Managing keys and certificates in Java often involves working with Java KeyStores (JKS) or other formats like PKCS12. Sometimes, there…
Read More » -
Core Java

Executing SQL Scripts in H2 Database
When writing integration tests for database-driven applications, it is often necessary to initialise schemas, preload test data, or run custom…
Read More » -
Enterprise Java

LangChain4j Quarkus MCP Example
The Model Context Protocol (MCP) is gaining traction as an essential bridge between Large Language Models (LLMs) and external tools.…
Read More » -
Enterprise Java

Simulate OAuth2 SSO in Spring Using MockMvc and WireMock
Testing Spring Boot applications secured with OAuth2 Single Sign-On (SSO) can be difficult, especially when authentication relies on an external…
Read More »





