Guide to Guava RangeMap
1. Overview In this tutorial, we’ll show how to use the Google Guava’s RangeMap interface and its implementations. A RangeMap is a special kind of mapping from disjoint non-empty ranges to non-null...
View ArticleA Guide to TreeMap in Java
1. Overview In this article, we are going to explore TreeMap implementation of Map interface from Java Collections Framework(JCF). TreeMap is a map implementation that keeps its entries sorted...
View ArticleIntro to Spring Remoting with HTTP Invokers
1. Overview In some cases, we need to decompose a system into several processes, each taking responsibility for a different aspect of our application. In these scenarios is not uncommon that one of...
View ArticleGuide to EJB Set-up
1. Overview In this article, we’re going to discuss how to get started with Enterprise JavaBean (EJB) development. Enterprise JavaBeans are used for developing scalable, distributed, server-side...
View ArticleJava Web Weekly, Issue 161
1. Spring and Java >> Bean Validation 2.0 Progress Report [beanvalidation.org] The new features of the Bean Validation 2.0 definitely look promising. >> Swift for Beans – var, let and Type...
View ArticleGuide to CountDownLatch in Java
1. Introduction In this article, we’ll give a guide to the CountDownLatch class and demonstrate how it can be used in a few practical examples. Essentially, by using a CountDownLatch we can cause a...
View ArticleIntroduction to the Kotlin Language
1. Overview In this tutorial, we’re going to take a look at Kotlin, a new language in the JVM world, and some of its basic features, including classes, inheritance, conditional statements, and looping...
View ArticleNew Stream Collectors in Java 9
1. Overview Collectors were added in Java 8 which helped accumulate input elements into mutable containers such as Map, List, and Set. In this article, we’re going to explore two new collectors added...
View ArticleSpring Data MongoDB: Projections and Aggregations
1. Overview Spring Data MongoDB provides simple high-level abstractions to MongoDB native query language. In this article, we will explore the support for Projections and Aggregation framework. If...
View ArticleMaxUploadSizeExceededException in Spring
1. Overview In the Spring framework, a MaxUploadSizeExceededException is thrown when an application attempts to upload a file whose size exceeds a certain threshold as specified in the configuration....
View ArticleGuide to java.util.concurrent.BlockingQueue
1. Overview In this article, we will look at one of the most useful constructs java.util.concurrent to solve the concurrent producer-consumer problem. We’ll look at an API of the BlockingQueue...
View ArticleIntro to Dropwizard Metrics
1. Introduction Metrics is a Java library which provides measuring instruments for Java applications. It has several modules, and in this article, we will elaborate metrics-core module,...
View ArticleApache Maven Tutorial
1. Introduction Building a software project typically consists of such tasks as downloading dependencies, putting additional jars on a classpath, compiling source code into binary code, running tests,...
View ArticleCORS with Spring
1. Overview In any modern browser, Cross-Origin Resource Sharing (CORS) is a relevant specification with the emergence of HTML5 and JS clients that consume data via REST APIs. In many cases, the host...
View ArticleQuerying Couchbase with MapReduce Views
1. Overview In this tutorial, we will introduce some simple MapReduce views and demonstrate how to query them using the Couchbase Java SDK. 2. Maven Dependency To work with Couchbase in a Maven...
View ArticleA Guide to Spring Mobile
1. Overview Spring Mobile is a modern extension to the popular Spring Web MVC framework that helps to simplify the development of web applications, which needs to be fully or partially compatible...
View ArticleGuide to Guava Table
1. Overview In this tutorial, we’ll show how to use the Google Guava’s Table interface and its multiple implementations. Guava’s Table is a collection that represents a table like structure containing...
View ArticleGuide to java.util.concurrent.Future
1. Overview In this article, we are going to learn about Future. An interface that’s been around since Java 1.5 and can be quite useful when working with asynchronous calls and concurrent processing....
View ArticleBuilding an API With the Spark Java Framework
1. Introduction In this article, we will have a quick introduction to Spark framework. Spark framework is a rapid development web framework inspired by the Sinatra framework for Ruby and is built...
View ArticleJava 9 Convenience Factory Methods for Collections
1. Overview Java 9 brings the long awaited syntactic sugar for creating small unmodifiable Collection instances using a concise one line code. As per JEP 269, new convenience factory methods will be...
View Article