O'Reilly logo

Java EE 8 High Performance by Romain Manni-Bucau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

DataSource configuration

To illustrate the configuration let's use the one we rely on in the quote manager: the datasource. As shown in Chapter 1Money – 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= ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required