A Simple Tagging Implementation with Elasticsearch
1. Overview Tagging is a common design pattern that allows us to categorize and filter items in our data model. In this article, we’ll implement tagging using Spring and Elasticsearch. We’ll be using...
View ArticleCompiling Java *.class Files with javac
1. Overview This tutorial will introduce the javac tool and describes how to use it to compile Java source files into class files. We’ll get started with a short description of the javac command, then...
View ArticleCustom Assertions with AssertJ
1. Overview In this tutorial, we’ll walk through creating custom AssertJ assertions; the AssertJ’s basics can be found here. Simply put, custom assertions allow creating assertions specific to our own...
View Articlewait and notify() Methods in Java
1. Introduction In this article, we’ll look at one of the most fundamental mechanisms in Java – thread synchronization. We’ll first discuss some essential concurrency-related terms and methodologies....
View ArticleJava Weekly, Issue 215
Here we go… 1. Spring and Java >> Monitor and troubleshoot Java applications and services with Datadog Optimize performance with end-to-end tracing and out-of-the-box support for popular Java...
View ArticleExploring the New HTTP Client in Java 9
1. Introduction In this tutorial, we’ll explore Java 9’s new incubating HttpClient. Until very recently, Java provided only the HttpURLConnection API – which is low-level and isn’t known for being...
View ArticleAsynchronous HTTP with async-http-client in Java
1. Overview AsyncHttpClient (AHC) is a library build on top of Netty, with the purpose of easily executing HTTP requests and processing responses asynchronously. In this article, we’ll present how to...
View ArticleThe Observer Pattern in Java
1. Overview In this article, we’re going to describe the Observer pattern and take a look at a few Java implementation alternatives. 2. What is the Observer Pattern? Observer is a behavioral design...
View ArticleFlyweight Pattern in Java
1. Overview In this article, we’ll take a look at the flyweight design pattern. This pattern is used to reduce the memory footprint. It can also improve performance in applications where object...
View ArticlePriority-based Job Scheduling in Java
1. Introduction In a multi-threaded environment, sometimes we need to schedule tasks based on custom criteria instead of just the creation time. Let’s see how we can achieve this in Java – using a...
View ArticleUsing Conditions with AssertJ Assertions
1. Overview In this tutorial, we’ll take a look at the AssertJ library, especially at defining and using conditions to create readable and maintainable tests. AssertJ basics can be found here. 2....
View ArticleJPA Attribute Converters
1. Introduction In this quick article, we’ll cover the usage of the Attribute Converters available in JPA 2.1 – which, simply put, allow us to map JDBC types to Java classes. We’ll use Hibernate 5 as...
View ArticleIntroduction to Jinq with Spring
1. Introduction Jinq provides an intuitive and handy approach for querying databases in Java. In this tutorial, we’ll explore how to configure a Spring project to use Jinq and some of its features...
View ArticleRegular Expressions in Kotlin
1. Introduction We can find use (or abuse) of regular expressions in pretty much every kind of software, from quick scripts to incredibly complex applications. In this article, we’ll see how to use...
View ArticleReliable Messaging with JGroups
1. Overview JGroups is a Java API for reliable messages exchange. It features a simple interface that provides: a flexible protocol stack, including TCP and UDP fragmentation and reassembly of large...
View ArticleIntroduction to ActiveWeb
1. Overview In this article, we’re going to illustrate the Activeweb – a full stack web framework from JavaLite – providing everything necessary for the development of dynamic web applications or...
View ArticleCheck if a String is a Palindrome
1. Introduction In this article, we’re going to see how we can check whether a given String is a palindrome using Java. A palindrome is a word, phrase, number, or other sequences of characters which...
View ArticleIntroduction to Smooks
1. Overview In this tutorial, we’ll introduce the Smooks framework. We’ll describe what it’s, list its key features, and eventually learn how to use some of its more advanced functionality. First of...
View ArticleA Maze Solver in Java
1. Introduction In this article, we’ll explore possible ways to navigate a maze, using Java. Consider the maze to be a black and white image, with black pixels representing walls, and white pixels...
View ArticleJava Weekly, Issue 216
Here we go… 1. Spring and Java >> Monitor and troubleshoot Java applications and services with Datadog Optimize performance with end-to-end tracing and out-of-the-box support for popular Java...
View Article