Category: Database
Hibernate Dbcp Connection Pooling Configuration
This tutorial shows you how to configure Hibernate dbcp Connection Pooling. By default hibernate comes with a built-in connection pool. But this connection pool is by no means production ready. They even advice not...
Configure Hibernate Logging with slf4j + log4j2
This tutorial shows how to configure hibernate with slf4j and log4j2. Logging is an important tool for each developer. So it’s worth setting up right the first time. We configure two logging appenders. The...
Configure Hibernate Logging with SLF4j + Logback
This tutorial shows how to configure hibernate with SLF4j and Logback. Logging is an important tool for each developer. So it’s worth setting up right the first time. We configure Logback with a ConsoleAppender...
Hibernate c3p0 Connection Pooling Configuration
This tutorial shows you how to configure Hibernate c3p0 Connection Pooling. By default hibernate comes with a built-in connection pool. But this connection pool is by no means production ready. They even advice not...
MySQL / MariaDb + Hibernate Annotation Configuration Example
Ap>This tutorial shows you how to configure MySQL/MariaDB with Hibernate using Annotation Configuration. We demonstrate this by inserting a POJO into the database. This POJO is enhanced with standard Java persistence annotations, which makes...
MySQL / MariaDb + Hibernate XML Configuration Example
This tutorial shows you how to configure MySQL/MariaDB with Hibernate using XML Configuration. We demonstrate this by inserting a POJO into the database. This POJO and database are configured using XML Configuration. Maven Dependencies...
Configure JNDI Datasource in Tomcat
Almost all web applications need to access a database. So we need to be aware what the best practices are in order to configure these databases efficiently. A database connection is expensive to make,...
Spring Redis Application Configuration Example
This tutorial shows how to create and configure a Spring Redis Application. We use Java Configuration to configure Spring. Dependencies To start you need to add the following dependencies to your project. <?xml version="1.0"...
Spring Redis Cache Manager Example
This tutorial shows how to use and configure Spring Redis Cache Manager. Caching service calls can greatly benefit your response time. Dependencies To start you need to add the following dependencies to your project....