JMX Data to the Elastic Stack (ELK)
1. Overview In this quick tutorial, we’re going to have a look at how to send JMX data from our Tomcat server to the Elastic Stack (formerly known as ELK). We’ll discuss how to configure Logstash to...
View ArticleREST API Testing with Karate
1. Overview In this article, we’ll introduce Karate, a Behavior Driven Development (BDD) testing framework for Java. 2. Karate and BDD Karate is built on top of Cucumber, another BDD testing...
View ArticleJava Weekly, Issue 203
Here we go… 1. Spring and Java >> Elegant delegates in Kotlin [blog.codecentric.de] Kotlin has many powerful features that should be used with extra care – and delegation is one of them....
View ArticleThe Java continue and break Keywords
1. Overview In this quick article, we’ll introduce continue and break Java keywords and focus on how to use them in practice. Simply put, execution of these statements causes branching of the current...
View ArticleLazy Verification with Mockito 2
1. Introduction In this short tutorial, we’ll look at lazy verifications in Mockito 2. Instead of failing-fast, Mockito allows us to see all results collected and reported at the end of a test. 2....
View ArticleAn Example of Backward Chaining in Drools
1. Overview In this article, we’ll see how what Backward Chaining is and how we can use it with Drools. This article is a part of a series showcasing the Drools Business Rules Engine. 2. Maven...
View ArticleIntroduction to Spring Cloud Stream
1. Overview Spring Cloud Stream is a framework built on top of Spring Boot and Spring Integration that helps in creating event-driven or message-driven microservices. In this article, we’ll introduce...
View ArticleA Guide to Google-Http-Client
1. Overview In this article, we’ll have a look at the Google HTTP Client Library for Java, which is a fast, well-abstracted library for accessing any resources via the HTTP connection protocol. The...
View ArticleSpring Security 5 for Reactive Applications
1. Introduction In this article, we’ll explore new features of the Spring Security 5 framework for securing reactive applications. This release is aligned with Spring 5 and Spring Boot 2. In this...
View ArticleGuide to Java String Pool
1. Overview The String object is the most used class in the Java language. In this quick article, we’ll explore the Java String Pool — the special memory region where Strings are stored by the JVM. 2....
View ArticleA Guide to Spring AbstractRoutingDatasource
1. Overview In this quick article, we’ll look at Spring’s AbstractRoutingDatasource as a way of dynamically determining the actual DataSource based on the current context. As a result, we’ll see that...
View ArticleIntroduction to Spring Cloud CLI
1. Introduction In this article, we take a look at Spring Boot Cloud CLI (or Cloud CLI for short). The tool provides a set of command line enhancements to the Spring Boot CLI that helps in further...
View ArticleIntroduction to Creational Design Patterns
1. Introduction In software engineering, a Design Pattern describes an established solution to the most commonly encountered problems in software design. It represents the best practices evolved over...
View ArticleSpring 5 Testing with @EnabledIf Annotation
1. Introduction In this quick article, we’ll discover the @EnabledIf and @DisabledIf annotations in Spring 5 using JUnit 5. Simply put, those annotations make it possible to disable/enable particular...
View ArticleDisplay All Time Zones With GMT And UTC in Java
1. Overview Whenever we deal with times and dates, we need a frame of reference. The standard for that is UTC, but we also see GMT in some applications. In short, UTC is the standard, while GMT is a...
View ArticleJava Weekly, Issue 204
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> First Contact With ‘var’ In Java 10 [blog.codefx.org] Java 9 was released two months ago and there’s already...
View ArticleHow to Copy a File with Java
1. Overview In this article, we’ll cover common ways of copying files in Java. First, we’ll use the standard IO and NIO.2 APIs, and two external libraries: commons-io and guava. 2. IO API (Before...
View ArticleIntroduction to Gradle
1. Overview Gradle is a Groovy-based build management system designed specifically for building Java-based projects. Installation instructions can be found here. 2. Building Blocks – Projects and...
View ArticleSend the Logs of a Java App to the Elastic Stack (ELK)
1. Overview In this quick tutorial, we’ll discuss, step by step, how to send out application logs to the Elastic Stack (ELK). In an earlier article, we focused on setting up the Elastic Stack and...
View ArticleCAS SSO With Spring Security
1. Overview In this article, we’re going to look at integrating the Central Authentication Service (CAS) with Spring Security. CAS is a Single Sign-On (SSO) service. Let’s say we have applications...
View Article