July 2015
Intermediate to advanced
604 pages
12h 13m
English
One of the most used features that an application comes with is the possibility to persist states (such as user information, orders, and so on) into a database. In this recipe, we will learn how to configure datasources and a JDBC 4 compliant driver.
Before we begin, we need to have a running database installed on our computer, or on a remote server. In this recipe, we will use a MySQL database running locally and listening on port 3306—the installation and configuration of the MySQL database server is beyond the scope of this book.
Declaring a new datasource consists of two separate steps:
The first step can be done in two different ways. ...
Read now
Unlock full access