Day 9. Using JDBC to Connect to a Database

Today, you'll learn how to use Java Database Connectivity (JDBC) to connect components of an enterprise application to any data source. JDBC is the standard and unified API to access any data in a tabular form, whether it is a relational database, spreadsheet, or flat file. We'll give a brief account of the JDBC architecture and the different clients and components across all the J2EE tiers that can use it. Using snippet of codes, the JDBC API will be explained. We'll wrap up with an example to highlight the main interfaces and classes of the JDBC. We'll emphasize the fact that JDBC is a vendor-neutral API by running an example in two different environments of application servers, without changes to ...

Get Sams Teach Yourself EJB in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.