Introduction to Guava CacheLoader
1. Introduction In this article, we’ll introduce the Guava CacheLoader. Before reading further, it’s recommended that there is a basic understanding of the LoadingCache class first. This is because...
View ArticleAdvanced HttpClient Configuration
1. Overview In this article, we will be looking at the advanced usage of the Apache HttpClient library. We’ll look at the examples of adding custom headers to HTTP requests, and we’ll see how to...
View ArticleA Guide to Neo4J with Java
1. Introduction This article is about Neo4j – one of the most mature and full-featured graph databases on the market today. Graph databases approach the task of data modeling with the view that many...
View ArticleGuide to Guava’s EventBus
1. Overview Guava library provides the EventBus which allows publish-subscribe communication between components. In this tutorial, we will look at how to use some of the features of the EventBus. 2....
View ArticleIntroduction to Apache Velocity
1. Overview Velocity is a Java-based templating engine. It’s an open source web framework designed to be used as a view component in the MVC architecture, and it provides an alternative to some...
View ArticleA Quick JUnit vs TestNG Comparison
1. Overview JUnit and TestNG are undoubtedly the two most popular unit-testing frameworks in the Java ecosystem. While TestNG itself is inspired by JUnit, it provides its own distinctive features and...
View ArticleIntro to Apache BVal
1. Introduction In this article, we will take a look at the Apache BVal library’s implementation of the Java Bean Validation specification (JSR 349). 2. Maven Dependencies In order to use Apache BVal,...
View ArticleUploading and Displaying Excel Files with Spring MVC
1. Introduction In this article, we will demonstrate how to upload Excel files and display their content in a web page using the Spring MVC framework. 2. Uploading Excel Files In order to be able to...
View ArticleGuide to Spring WebUtils and ServletRequestUtils
1. Overview In this quick article, we’ll explore the build-in web request utils in Spring MVC – WebUtils, ServletRequestUtils. 2. WebUtils and ServletRequestUtils In almost all applications, we face...
View ArticleSimple Jenkins Pipeline with Marathon and Mesos
1. Introduction In this article, we’ll be implementing a simple Continuous Delivery pipeline with Jenkins, Marathon and Mesos. First, we will give a high level overview of the technology stack and...
View ArticleJava Web Weekly, Issue 165
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> From Microservices to Distributed Systems – Survival guide for Java Developers [eisele.net] Another solid way...
View ArticleFinding Max/Min of a List or Collection
1. Introduction A quick intro on how to find the min/max value from a given list/collection with the powerful Stream API in Java8. 2. Find Max in a List of Integers We can use max() method provided...
View ArticleIntroduction to jOOL
1. Overview In this article, we will be looking at the jOOL library – another product from jOOQ. 2. Maven Dependency Let’s start by adding a Maven dependency to your pom.xml: <dependency>...
View ArticleIntroduction to Cobertura
1. Overview In this article, we will demonstrate several aspects of generating code coverage reports using Cobertura. Simply put, Cobertura is a reporting tool that calculates test coverage for a...
View ArticleIntroduction to RabbitMQ
1. Overview Decoupling of software components is one of the most important parts of software design. One way of achieving this is using messaging systems, which provide an asynchronous way of...
View ArticleAWS Lambda Using DynamoDB With Java
1. Introduction AWS Lambda is serverless computing service provided by Amazon Web Services and WS DynamoDB is a NoSQL database service also provided by Amazon. Interestingly, DynamoDB supports both...
View ArticleGuide to java.util.concurrent.Locks
1. Overview Simply put, a lock is a more flexible and sophisticated thread synchronization mechanism than the standard synchronized block. The Lock interface has been around since Java 1.5. It is...
View ArticleSpring Remoting with Hessian and Burlap
1. Overview In the previous article titled “Intro to Spring Remoting with HTTP Invokers” we saw how easy is to set up a client/server application that leverages remote method invocation (RMI) through...
View ArticleIntroduction to cglib
1. Overview In this article, we will be looking at the cglib (Code Generation Library) library. It is a byte instrumentation library used in many Java frameworks such as Hibernate or Spring. The...
View ArticleWorking with Relationships in Spring Data REST
1. Overview In this article, we’re going to take a look at how to work with relationships between entities in Spring Data REST. We will focus on the association resources that Spring Data REST exposes...
View Article