June 2017
Beginner
1296 pages
69h 23m
English
AddressBeanTo connect to the addressbook database from a web app, you must configure a data source name that will be used to locate the database.
Java EE 7’s @DataSourceDefinition annotation creates a data source name, specifying its JNDI (Java Naming and Directory Interface) name that is used to look up the data source.
JNDI is a technology for locating application components (such as databases) in a distributed application (such as a multitier web application).
A DataSource (package javax.sql) enables a web application to obtain a Connection to a database.
ClientDataSource is one of several DataSource subclasses provided by Java DB. Apps that are expected to manage many connections at once would typically use ...