Before you start
Apache Derby is no longer waiting in the wings -- it has taken center stage as a mature, robust database that can be used almost anywhere. This series of tutorials is for developers or expert users who want to explore the future of data storage. On this journey, expect to combine Derby with other standard tools (both user and developer) to create solutions that solve problems you face every day: ad hoc analysis, document storage, and that newest bugbear, compliance.
This tutorial provides a survey of techniques that enable document storage and search. You'll:
- Gain an understanding of what it takes to load, parse, and search an ODF text document created with OpenOffice.org 2.0.
- Compare the less-sophisticated Derby database and DB2, Version 9.1, the technologically advanced XML storage engine.
- Learn how to install, configure, and use the powerful IBM DB2 Developer Workbench, based on the Eclipse software development kit (SDK).
Discover how to manipulate ODF documents using Java™ frameworks shipped with the Java 2 Platform, Standard Edition (J2SE) Development Kit (JDK), such as java.util.zip and Java Architecture for XML Binding (JAXB), along with techniques for handling Binary Large Object (BLOB) data on disk and in the Derby database.
You should be reasonably comfortable with standard Java tools and have a smattering of SQL experience. The ability to install and configure a Java Virtual Machine (JVM), Apache Ant or Eclipse, and Derby is required.
To run the examples in this tutorial, you need the following:
- JVM
- 100-200 MB of free space, depending on your choice of tool set
- At least 64MB of RAM for your virtual machine (VM)
Download and install the following programs:

