Part I Development Tasks and Tools
1. Setting Up a Development Environment
Part II Developing Applications and Application Components
6. Using the Java Persistence API
7. Developing Web Applications
8. Using Enterprise JavaBeans Technology
9. Using Container-Managed Persistence
12. Developing Lifecycle Listeners
13. Developing OSGi-enabled Java EE Applications
Part III Using Services and APIs
Using an Initialization Statement
Statement Leak Detection and Leaked Statement Reclamation
Transparent Pool Reconfiguration
Associating Connections with Threads
Obtaining a Physical Connection From a Wrapped Connection
Using the Connection.unwrap() Method
Allowing Non-Component Callers
Using Application-Scoped Resources
Restrictions and Optimizations
Disabling Stored Procedure Creation on Sybase
15. Using the Transaction Service
16. Using the Java Naming and Directory Interface
17. Using the Java Message Service
This chapter describes how to use the Java Database Connectivity (JDBC) API for database access with the Oracle GlassFish Server. This chapter also provides high level JDBC implementation instructions for servlets and EJB components using the GlassFish Server. If the JDK version 1.6 is used, the GlassFish Server supports the JDBC 4.0 API.
The JDBC specifications are available at http://www.oracle.com/technetwork/java/javase/jdbc/index.html.
A useful JDBC tutorial is located at http://download.oracle.com/javase/tutorial/jdbc/index.html.
Note - The GlassFish Server does not support connection pooling or transactions for an application’s database access if it does not use standard Java EE DataSource objects.
The following topics are addressed here: