O'Reilly Open Source Convention - August 1-5, 2005 - Portland, Oregon
 Convention Coverage


SOLD OUTJDBC and Web Development with the Spring Framework
Thomas Risberg, Consultant, springdeveloper.com
Rob Harrop, Principal Consultant, Interface21

Track: Java
Date: Monday, August 1st, 2005
Time: 8:30am - 12:00pm
Location: E142

The Spring Framework is an application framework that covers many different layers of Java and J2EE application development. For this talk, we will concentrate on the parts that deal with database access.

Most applications access a database and the standard API for this is JDBC. This is a low level API that is cumbersome to work with and it is easy to make a mistake whereby connections are not closed. This can easily lead to application failures and downtime.

The Spring Framework provides an abstraction layer that manages all the JDBC resources and automatically closes them. This leads to significantly fewer lines of code with fewer errors as well. In addition to this the Spring Framework provides declarative transaction support for any application, not just EJBs. This makes it possible to use the same code in a variety of environments without having to recode the transaction aspects of the code.

This talk focuses on how to get started with the Spring Framework. It shows an example application and how to configure a Spring application context with the necessary Spring JDBC components. We will replace the standard JDBC code in the application with its Spring equivalent.

Next we will cover more advanced features like customized exception translation, batch updates, stored procedure access and BLOB/CLOB support. We will also look at an example of declarative transaction configuration.

The final part will discuss when JDBC is more appropriate and when an O/R Mapping tool like Hibernate would be better. An example of how to mix both Hibernate and JDBC within the same transaction is also shown.

Diamond Sponsors

Computer Associates International Inc., (CA)
Hewlett Packard
Sun Microsystems

Platinum Sponsors

Novell, Inc.

Gold Sponsors


Silver Sponsors

Black Duck Software
Covalent Technologies
GroundWork Open Source Solutions
Intel Corporation
Mergere, Inc.
Yahoo! Inc.
Zend Technologies, Inc.

Media Sponsors

boing boing
C/C++ Users Journal
DevtownStation News
Digital ID World
Enterprise Open Source Journal
Free Software Magazine
InsideMac Radio
Integration Developer News
Linux Journal
Open Enterprise Trends
Software Association of Oregon
Version Tracker
Wi-Fi Technology Forum
Women's Technology Cluster

In-Kind Sponsors

Dell Inc.
Griffin Technology
Harman Multimedia


OSCON 2005 Sponsor Opportunities — Email us at

Download the OSCON 05 Sponsor/Exhibitor Prospectus

OSCON 2005 Media Sponsor Opportunities — Call Margi Levin at 707-827-7184 or email at

Press and Media

For media-related inquiries, contact Suzanne Axtell at

Conference News

Want to receive conference news? Sign up for our email newsletter.

O'Reilly Home | Privacy Policy

© 2005, O'Reilly Media, Inc.