Java
-
Implementing correlation ids in Spring Boot (for distributed tracing in SOA/microservices)
After attending Sam Newman’s microservice talks at Geecon last week I started to think more about what is most likely…
Read More » -
Java File I/O Basics
Java 7 introduced the java.nio.file package to provide comprehensive support for file I/O. Besides a lot of other functionality this…
Read More » -
JPA 2.1 Entity Graph – Part 2: Define lazy/eager loading at runtime
This is my second post on JPA 2.1 Entity Graphs. The first post described the usage of named entity graphs.…
Read More » -
Double Checked Locking on Singleton Class in Java
Singleton class is quite common among Java developers, but it poses many challenges to junior developers. One of the key…
Read More » -
Parsing a file with Stream API in Java 8
Streams are everywhere in Java 8. Just look around and for sure you will find them. It also applies to…
Read More » -
Writing Clean Tests – New Considered Harmful
It is pretty hard to figure out a good definition for clean code because everyone of us has our own…
Read More » -
JPA 2.1 Entity Graph – Part 1: Named entity graphs
Lazy loading was often an issue with JPA 2.0. You have to define at the entity if you want to…
Read More » -
Prefix and Suffix Matches in Solr
Search engines are all about looking up strings. The user enters a query term that is then retrieved from the…
Read More » -
Generate your JAXB classes in a second with xjc
Since JAXB is part of the JDK, it is one of the most often used frameworks to process XML documents.…
Read More »