Chapter 8. Configuring Database Connectivity
In this chapter, you will learn what a datasource is and how to configure it via CLI. To configure datasources, JBoss EAP 7 provides a specific subsystem named urn:jboss:domain:datasources
.
The following are the topics you will learn about as we progress through this chapter on datasources:
Datasource overview
Adding a JDBC 4 Driver
Defining a new datasource
Using connection pools
Defining an XA-datasource
The difference between XA e non-XA datasources
Hardening datasource configuration
To keep things simple and easy to understand, we will rely on a MySQL 5 database to explain the configuration settings throughout this chapter.
Also, because the datasource configuration is independent of the JBoss EAP running mode, we will use the standalone mode to test our configuration; we will, however, provide scripts for both modes.