O'Reilly logo

Apache Derby—Off to the Races: Includes Details of IBM® Cloudscape™ by Dan Scott, George Baklarz, Paul C. Zikopoulos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Embedded JDBC Drivers

Every Apache Derby embedded application must load the JDBC driver before issuing any connects or SQL statements. Stored procedures and user-defined functions do not need to load the JDBC driver because it is assumed that they are running under the context of another program that is executing an SQL statement.

By definition, an embedded Apache Derby application has a direct connection to the database. When the application starts, it is the only connection to the database, and when the application completes, the database is stopped. The other option is to run Apache Derby as a network database. In this case, the program can be one of many applications that are accessing the database.

The class that loads the Apache Derby ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required