Derby (Java DB) JDBC DataSource Objects
This chapter provides tutorial notes on using DataSource objects and JNDI to connect Java DB (Derby) Database. Topics include creating connections with ClientDataSource objects directly without JNDI; downloading and installing JNDI File System Service Provider; Binding ClientDataSource objects to JNDI names; Looking up ClientDataSource objects through JNDI.
Derby - Connection with DataSource Objects
Derby - Using ClientDataSource Directly
Installing JNDI File System Service Provider
Derby - Storing ClientDataSource Objects on File System
Derby - Looking Up ClientDataSource Objects on File System
What Happens If Client JDBC DataSource JAR Is Missing?
- Another way of connecting to a database is to use DataSource objects instead of the DriverManager class.
- A connection can be created by setting database server information directly to the DataSource object.
- A connection can also be created by looking up with a JNDI directory service.
Table of Contents
About This Book
JDBC (Java Database Connectivity) Introduction
JDK (Java SE) Installation
Installing and Running Java DB - Derby
Derby (Java DB) JDBC Driver
►Derby (Java DB) JDBC DataSource Objects
Java DB (Derby) - DML Statements
Java DB (Derby) - ResultSet Objects of Queries
Java DB (Derby) - PreparedStatement
Summary of JDBC Drivers and Database Servers
Using Connection Pool with JDBC
Full Version in PDF/EPUB