Writing Log Data to Syslog Using Log4j2
1. Overview Logging is a vital component in every application. When we use a logging mechanism in our application, we can store our logs in a file or a database. Additionally, we can send the logging...
View ArticleJava Weekly, Issue 394
1. Spring and Java >> Quarkus & Hibernate – Getting Started [thorben-janssen.com] Developing k8s-native Java apps – a practical guide on using Quarkus and Hibernate together. >>...
View ArticlePlugin Management in Maven
1. Overview Apache Maven is a powerful tool that uses plugins to automate and perform all the build and reporting tasks in a Java project. However, there are likely to be several of these plugins used...
View ArticleCreating a Self-Signed Certificate With OpenSSL
1. Overview OpenSSL is an open-source command-line tool that allows users to perform various SSL-related tasks. In this article, we'll learn how to create a self-signed certificate with OpenSSL. 2....
View ArticleGuava’s Futures and ListenableFuture
1. Introduction Guava provides us with ListenableFuture with an enriched API over the default Java Future. Let's see how we can use this to our advantage. 2. Future, ListenableFuture and Futures Let's...
View ArticleConvert a String to Camel Case
1. Overview Camel case and title case are commonly used as identifiers for fields and types. We may wish to convert text into this format. This can be achieved either by writing custom code or by...
View ArticleWhy Missing Annotations Don’t Cause ClassNotFoundException
1. Overview In this tutorial, we're going to get familiar with a seemingly bizarre feature in the Java Programming language: Missing annotations won't cause any exceptions at runtime. Then, we'll dig...
View ArticleValid @SuppressWarnings Warning Names
1. Overview In this tutorial, we'll take a look at the different warning names that work with the @SuppressWarnings Java annotation, which allows us to suppress compiler warnings. These warning names...
View ArticleSignificance of Getters and Setters in Java
1. Introduction Getters and Setters play an important role in retrieving and updating the value of a variable outside the encapsulating class. A setter updates the value of a variable, while a getter...
View ArticlePub-Sub vs. Message Queues
1. Overview In this tutorial, we'll look at the use of message queues and publishers/subscribers. These are common patterns used in distributed systems for two or more services to communicate with one...
View ArticleIs java.sql.Connection Thread-Safe?
1. Overview When we work on multi-threading projects, we know that if multiple threads share objects that are not implemented with thread safety in mind, the threads may behave unexpectedly. Many of us...
View ArticleJava Weekly, Issue 395
1. Spring and Java >> Rust and the JVM [blog.frankel.ch] Tunneling to Rust from Java – exploring different ways to call Rust functions from Java. >> What's New in JPA Buddy — July 2021...
View ArticleCreating a Kubertes Admission Controller in Java
1. Introduction After working for a while with Kubernetes, we'll soon realize that there's a lot of boilerplate code involved. Even for a simple service, we need to provide all required details,...
View ArticleKubernetes with kind
1. Overview When working with Kubernetes, we lack a tool that helps in local development — a tool that can run local Kubernetes clusters using Docker containers as nodes. In this tutorial, we'll...
View ArticleHow to Implement LRU Cache in Java
1. Overview In this tutorial, we're going to learn about the LRU cache and take a look at an implementation in Java. 2. LRU Cache The Least Recently Used (LRU) cache is a cache eviction algorithm that...
View ArticleFind Whether an IP Address Is in the Specified Range or Not in Java
1. Overview In this tutorial, we'll discuss how to find whether an IP address is in a given range or not using Java. For this problem, we'll consider all the given IP addresses are valid IPv4 (Internet...
View ArticleCQL Data Types
1. Overview In this tutorial, we'll show some of the different data types of the Apache Cassandra database. Apache Cassandra supports a rich set of data types, including collection types, native types,...
View ArticleArchitecture of a Geospatial Application with Java
1. Introduction In this article, we'll understand the core architecture and important elements of a geospatial application. We'll begin by understanding what a geospatial application is and typical...
View ArticleLinking to an External URL in Javadoc
1. Introduction While writing our code, we might refer to articles on the internet like wiki pages, guides, or official documentation of a library. It could be a good idea to add the links to such...
View ArticleComments in a Jenkinsfile
1. Overview In this tutorial, we'll see how we can use comments in Jenkinsfile. We will cover different types of comments and their syntax. 2. Comments in a Jenkinsfile The syntax of Jenkinsfile is...
View Article