Quantcast
Channel: Baeldung
Browsing all 4621 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Pub-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 Article


Image may be NSFW.
Clik here to view.

Is 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 Article


Image may be NSFW.
Clik here to view.

Java 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 Article

Image may be NSFW.
Clik here to view.

Creating 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 Article

Image may be NSFW.
Clik here to view.

Kubernetes 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 Article


Image may be NSFW.
Clik here to view.

How 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 Article

Image may be NSFW.
Clik here to view.

Find 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 Article

Image may be NSFW.
Clik here to view.

CQL 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 Article


Image may be NSFW.
Clik here to view.

Architecture 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 Article


Image may be NSFW.
Clik here to view.

Linking 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 Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 396

1. Spring and Java >> Is Java 17 a Glass Half Full? [infoq.com] Java's 6-month cadence dilemma – should we be pessimistic about these, sometimes, modest releases, or is this yet another “glass...

View Article

Image may be NSFW.
Clik here to view.

Comments 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

Image may be NSFW.
Clik here to view.

Calling a SOAP Web Service from the Command Line

1. Overview In this tutorial, we're going to show how we can use different command-line interface (CLI) processes to consume a SOAP web service. 2. SOAP Web Service To run the examples in this post,...

View Article


Image may be NSFW.
Clik here to view.

Default Values for Maven Properties

1. Overview Apache Maven is a powerful build automation tool used primarily for Java projects. Maven uses a Project Object Model or POM which contains information about the project and configuration...

View Article

Image may be NSFW.
Clik here to view.

Setting Up a Jenkins Slave Node

1. Overview In this tutorial, we'll go over the concept of distributed builds in Jenkins Architecture. Furthermore, we'll learn how we can configure Jenkins master-slave architecture. Additionally,...

View Article


Image may be NSFW.
Clik here to view.

Trusting a Self-Signed Certificate in OkHttp

1. Overview In this article, we'll see how to initialize and configure an OkHttpClient to trust self-signed certificates. For this purpose, we'll set up a minimal HTTPS-enabled Spring Boot application...

View Article

Image may be NSFW.
Clik here to view.

Converting a PEM File to Java KeyStore Format

1. Overview In a previous tutorial, we showed how to convert a Java KeyStore (JKS) into PEM format. In this tutorial, we're going to convert the PEM format to the standard Java KeyStore (JKS) format. A...

View Article


Image may be NSFW.
Clik here to view.

EntityNotFoundException in Hibernate

1. Introduction In this tutorial, we'll talk about the EntityNotFoundException from the javax.persistence package. We'll cover the cases when this exception can occur, and after that, we'll write tests...

View Article

Image may be NSFW.
Clik here to view.

How to Create Password-Protected Zip Files and Unzip Them in Java

1. Overview In a previous tutorial, we show how to zip and unzip in Java with the help of the java.util.zip package. But we don’t have any standard Java library to create password-protected zip files....

View Article

Image may be NSFW.
Clik here to view.

Difference Between MVC and MVP Patterns

1. Overview In this tutorial, we'll learn about the Model View Controller and Model View Presenter patterns. We'll also discuss the differences between them. 2. Design Pattern and Architectural Pattern...

View Article
Browsing all 4621 articles
Browse latest View live