The datasource subsystem allows you to create and configure datasources and manage JDBC database drivers.

Datasources

The two general types of resources are referred to as datasources and XA datasources.

JDBC Drivers

Before your application can connect to a datasource, your datasource vendor's JDBC drivers need to be installed. You can choose between two different ways to install JDBC drivers:

Modules

To install a JDBC driver as a module you need to create a file path structure under the ${build.installDir}/modules, copy the JDBC driver JAR into the main/ subdirectory and create a module.xml file.

Once the JDBC driver is available as a module you can use this section to add and remove driver configurations.

Deployments

You can deploy JDBC drivers just like any other deployment. This means that you can deploy them across multiple servers in a server group, if you use a managed domain. Any JDBC 4-compliant driver will automatically be recognized and installed into the system by name and version.

In domain mode drivers deployed as applications will only show up in this section if there are running servers which match the selected profile.