Fixing SQL Server JDBC Connection SSL Certificate Errors
When connecting to a SQL Server database from a Java application using JDBC, you might encounter an SSL/TLS handshake failure. This typically manifests as an error indicating the driver cannot establish a secure connection.
The root cause is often that the SQL Server's SSL certificate is not trusted by the Java Virtual Machine (JVM). This can h ...
Posted on Thu, 18 Jun 2026 18:22:21 +0000 by nerya
Developing Custom Dynamic Table Connectors for Apache Flink
Introduction to Custom Table Connectors
When working with Apache Flink's Table API and SQL, users often interact with data through predefined connectors. While Flink provides a rich set of built-in connectors capable of handling a wide array of data sources and sinks, specific scenarios frequently arise where these standard implementations fall ...
Posted on Wed, 17 Jun 2026 16:50:09 +0000 by dsinghldh
Understanding and Implementing ShardingSphere-JDBC for Distributed Databases
When discussing distributed database middleware, Apache ShardingSphere-JDBC is a prominent solution. This guide delves into its core concepts and practical applications.
The ShardingSphere Ecosystem
Apache ShardingSphere is a robust distributed database ecosystem comprising two primary products:
ShardingSphere-Proxy: Positioned as a transpare ...
Posted on Wed, 17 Jun 2026 16:05:16 +0000 by yobo
Understanding Java SPI Through JDBC, Spring, and Dubbo
Java Service Provider Interface (SPI)
SPI (Service Provider Interface) is a service discovery mechanism that provides extension points for interface implementations. Introduced in JDK 6 (see the Since field of java.util.ServiceLoader), SPI enables dynamic loading of concrete service providers at runtime, promoting decoupling and offernig Invers ...
Posted on Sat, 13 Jun 2026 17:55:23 +0000 by wattsup88
Retrieving Database Table Columns in Java Applications
Database Connection Setup
Establishing a connection to the database is the initial requirement for acessing table metadata. The JDBC API provides the necessary tools for this operation.
import java.sql.*;
public class DatabaseMetadataReader {
private static final String DB_URL = "jdbc:mysql://localhost:3306/test";
private sta ...
Posted on Wed, 03 Jun 2026 16:14:32 +0000 by vidhu
Integrating Spring Security with Spring Boot: A Comprehensive Guide
Environment Setup
JDK version: 17
Build tool: Gradle
Spring Boot version: 2.7.18 (Note: Spring Boot 3 introduces significant changes)
Spring Security version: 5.7.11
Core Components and Authentication Flow
Spring Security implements authentication and authorization through a chain of filters. Each filter has a specific responsibility, and onl ...
Posted on Wed, 27 May 2026 16:36:19 +0000 by NickTyson
JDBC Programming Steps and Concepts
JDBC Programming Steps
1. Register the driver (inform the Java program which brand of database is being connected to)
2. Get the connection (indicates that the process of JVM and the database process have opened a channel, this is inter-process communication, remember to close the channel after use).
3. Obtain the database operation object ...
Posted on Tue, 26 May 2026 17:42:10 +0000 by ecco
MySQL JDBC CRUD Operations and Java Object Serialization
Sequential Data Reading
public static void authenticateUser(String username, String password) throws Exception {
Class.forName("com.mysql.cj.jdbc.Driver");
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/mydb", "root", "password");
Statement statement = conn.createSt ...
Posted on Sat, 23 May 2026 19:03:47 +0000 by Jiin
Understanding SPI and Its Role in JDBC Driver Loading
What Is SPI?
SPI (Service Provider Interface) is a mechanism in Java that enables dynamic discovery of service implementations at runtime. It scans the META-INF/services/ directory on the classpath for files named after fully qualified interface names. Each file lists concrete implementation classes, allowing frameworks to load them without har ...
Posted on Fri, 22 May 2026 19:51:18 +0000 by vponz
Java Bean Persistence and JDBC Database Access
XML-Based Bean Persistence
Long-term persistence enables Java beans to be saved in XML format. The XMLEncoder and XMLDecoder classes facilitate this process by writing and reading bean representations in XML documents.
Encoding and Decoding Objects
The XMLEncoder class generates XML representations of serializable objects:
XMLEncoder xmlWriter ...
Posted on Mon, 18 May 2026 02:21:47 +0000 by wiley