DataSource configuration

To illustrate the configuration let's use the one we rely on in the quote manager: the datasource. As shown in Chapter 1, Money – The Quote Manager Application you can define the datasource this way:

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN"    "http://glassfish.org/dtds/glassfish-resources_1_5.dtd"><resources>  <1>  <jdbc-connection-pool allow-non-component-callers="false"                        associate-with-thread="false"                        connection-creation-retry-attempts="0"                        connection-creation-retry-interval-in-seconds="10"                        connection-leak-reclaim="false"                        connection-leak-timeout-in-seconds="0"                        connection-validation-method="auto-commit"                        datasource-classname= ...

Get Java EE 8 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.