How to Import a .cer Certificate Into a Java KeyStore
1. Overview A KeyStore, as the name suggests, is basically a repository of certificates, public and private keys. Moreover, JDK distributions are shipped with an executable to help manage them, the...
View ArticleJava Weekly, Issue 356
1. Spring and Java >> JEP proposed to target JDK 16: Unix-Domain Socket Channels [mail.openjdk.java.net] More channels for NIO: Java 16 will support Unix domain sockets as part of its NIO...
View ArticleIntroduction to Netflix Mantis
1. Overview In this article, we'll take a look at the Mantis platform developed by Netflix. We'll explore the main Mantis concepts by creating, running, and investigating a stream processing job. 2....
View ArticleAccessing Keycloak Endpoints Using Postman
1. Introduction In this article, we start with a quick review of OAuth 2.0, OpenID, and Keycloak. Afterward, we'll learn about the Keycloak REST APIs and how to call them in Postman. 2. OAuth 2.0 OAuth...
View ArticleGet Names of Classes Inside a JAR File
1. Overview Most Java libraries are available as JAR files. In this tutorial, we'll address how to get names of classes inside a given JAR file from the command line and from a Java program. Then,...
View ArticleRetrofit 2 – Dynamic URL
1. Overview In this short tutorial, we'll learn how to create a dynamic URL in Retrofit2. 2. @Url Annotation There are cases when we need to use a dynamic URL in our application during runtime. Version...
View ArticleSet JWT with Spring Boot and Swagger UI
1. Introduction In this short tutorial, we're going to see how to configure Swagger UI to include a JSON Web Token (JWT) when it calls our API. 2. Maven Dependencies In this example, we'll be using...
View ArticleJava Weekly, Issue 357
1. Spring and Java >> The JPA and Hibernate first-level cache [vladmihalcea.com] On the benefits of the first-level cache in JPA/Hibernate: write-behind cache, batching, and application-level...
View ArticleDependency Management in Gradle
1. Overview In this tutorial, we'll look at declaring dependencies in a Gradle build script. For our examples, we'll be using Gradle 6.7. 2. Typical Structure Let's start with a simple Gradle script...
View ArticleApache Commons Collections vs Google Guava
1. Overview In this tutorial, we'll compare two Java-based open source libraries: Apache Commons and Google Guava. Both libraries have a rich feature set with lots of utility APIs majorly in the...
View ArticleStoring Files Indexed by a Database
1. Overview When we are building some sort of content management solution, we need to solve two problems. We need a place to store the files themselves, and we need some sort of database to index them....
View ArticleAbstractMethodError in Java
1. Overview Sometimes, we may encounter AbstractMethodError at runtime in our application. If we don't know this error well, it might take a while to determine the cause of the problem. In this...
View ArticleUnderstanding the & 0xff Value in Java
1. Overview 0xff is a number represented in the hexadecimal numeral system (base 16). It's composed of two F numbers in hex. As we know, F in hex is equivalent to 1111 in the binary numeral system. So,...
View ArticleDistributed Performance Testing with JMeter
1. Overview In this article, we'll explore distributed performance testing using JMeter. 2. What is Distributed Performance Testing? Distributed performance testing means using multiple systems with...
View ArticleThe transient Keyword in Java
1. Introduction In this article, we'll first understand the transient keyword, and then we'll see its behavior through examples. 2. Usage of transient Let's first understand the serialization before...
View ArticleJava Weekly, Issue 358
1. Spring and Java >> From Reactor to Coroutines [blog.frankel.ch] A practical take on how to migrate from Project Reactor to Kotlin coroutines: R2DBC and coroutine repositories, web handers and...
View ArticleJava (String) or .toString()?
1. Introduction In this article, we'll provide a brief explanation of the differences between String casting and executing the toString() method. We'll briefly review both syntaxes and go through an...
View ArticleExtending Enums in Java
1. Overview The enum type, introduced in Java 5, is a special data type that represents a group of constants. Using enums, we can define and use our constants in the way of type safety. It brings...
View ArticleCheck if a Java Program Is Running in 64-Bit or 32-Bit JVM
1. Overview Although Java is platform-independent, there are times when we have to use native libraries. In those cases, we might need to identify the underlying platform and load the appropriate...
View ArticleFunctional Programming in Java
1. Introduction In this tutorial, we'll understand the functional programming paradigm's core principles and how to practice them in the Java programming language. We'll also cover some of the advanced...
View Article