Skip to Content
Java How to Program, Early Objects, 11th Edition
book

Java How to Program, Early Objects, 11th Edition

by Paul J. Deitel, Harvey Deitel
June 2017
Beginner
1296 pages
69h 23m
English
Pearson
Content preview from Java How to Program, Early Objects, 11th Edition

Summary

Section 30.2.2 Class AddressBean

  • To 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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17

Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17

Kishori Sharan, Adam L. Davis
Learning Java, 5th Edition

Learning Java, 5th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
Java in a Nutshell, 8th Edition

Java in a Nutshell, 8th Edition

Benjamin J. Evans, Jason Clark, David Flanagan

Publisher Resources

ISBN: 9780134751962