NOTE: THE FRAMEWORKS SCRIPTS HAVE BEEN DEPRECATED. PLEASE BEGIN USING THE SCRIPTS IN THE /bin DIRECTORY

About Derby's Frameworks

A framework is the environment in which Derby runs. The framework in which you run Derby affects how you run applications against Derby.

The frameworks directory contains subdirectories for each framework with supporting files. Depending on the framework, the subdirectory includes:

For an easy-to-follow example of how to run an application in the two frameworks, see the simple example in the demos directory if your distribution includes it.

For more information about frameworks, see Getting Started with Derby.

Embedded Framework

An embedded framework is the most basic framework. Derby runs embedded in a Java application. When the application loads the local JDBC driver, it starts up the Derby engine. When the application shuts down, it shuts down the Derby engine. Only a single application can access a database at one time.

The bin subdirectory in frameworks/embedded contains scripts for running some of the Derby tools in an embedded environment. For working in an embedded environment, put the frameworks/embedded/bin subdirectory first in your path.

Server Framework

A server framework is a continuously running Java application that allows multiple, remote JDBC applications to connect to Derby.

Derby Network Server

The Derby Network Server is a server framework that comes with Derby. The Derby Network Server works with the Derby Client driver and the DB2 JCC JDBC driver. Please read the Derby documentation on the differences between the client and the embedded drivers.