Drools Spring Integration 1. Introduction In this quick tutorial, we’re going to integrate Drools with Spring. If you’re just getting started with Drools, check out this intro article. 2. Maven Dependencies Let’s start by adding the following dependencies to our pom.xml file: <dependency> <groupId>org.drools</groupId> <artifactId>drools-core</artifactId> <version>7.0.0.Final</version> </dependency> <dependency> <groupId>org.kie</groupId> <artifactId>kie-spring</artifactId>… Continue Reading drools-spring-integration

Guide to java.util.GregorianCalendar 1. Introduction In this tutorial, we’re going to take a quick peek at the GregorianCalendar class. 2. GregorianCalendar GregorianCalendar is a concrete implementation of the abstract class java.util.Calendar. Not surprisingly, the Gregorian Calendar is the most widely used civil calendar in the world.  2.1. Getting an Instance There are two… Continue Reading java-gregorian-calendar

Spring Batch using Partitioner 1. Overview In our previous introduction to Spring Batch, we introduced the framework as a batch-processing tool. We also explored the configuration details and the implementation for a single-threaded, single process job execution. To implement a job with some parallel processing, a range of options is… Continue Reading spring-batch-partitioner

Inline Functions in Kotlin 1. Overview In Kotlin, functions are first-class citizens, so we can pass functions around or return them just like other normal types. However, the representation of these functions at runtime sometimes may cause a few limitations or performance complications. In this tutorial, first we’re going to… Continue Reading kotlin-inline-functions