Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Real-world Apache Derby, Part 3: Portable document storage

Store, search, and extract ODF documents using Derby and IBM DB2, Version 9

Dave Warner (david.warner@ngc.com), Senior Database Administrator, Northrop Grumman IT Solutions
Dave Warner has been working with databases since the early 1980s, focusing on business productivity and analysis. A Sun Certified Java Programmer, he's also certified in Microsoft SQL Server and works with Sybase tools extensively. He was formerly a chief technology officer at a small medical software company and presently works at Northrop Grumman IT Solutions as a senior database administrator.

Summary:  Document storage is hot, hot, hot! There has been an explosion of methodologies and tool sets -- both open source and proprietary -- to fulfill the demand for quickly locating and searching documents. Enabling technologies like Alfresco, Sharepoint, or my favorite, TWiki, are powerful, but they have a fairly high learning curve -- or worse, store the documents in a proprietary format. There must be an easier way. Let's take Derby and mash it with a new feature in OpenOffice 2.0, the Open Document Format (ODF). Using these tools, you can create a repository that lets you store, search, and extract ODF documents in a standards-based manner. Also learn to use the power of the improved XML features of IBM® DB2®, Version 9 to make this solution easier to implement.

View more content in this series

Date:  06 Feb 2007
Level:  Intermediate PDF:  A4 and Letter (1203 KB | 39 pages)Get Adobe® Reader®

Activity:  6005 views
Comments:  

Before you start

About this series

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.

About this tutorial

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).

Objectives

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.


Prerequisites

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.

System requirements

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:

1 of 11 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Open source, Information Management
ArticleID=194204
TutorialTitle=Real-world Apache Derby, Part 3: Portable document storage
publish-date=02062007
author1-email=david.warner@ngc.com
author1-email-cc=derby@warnerconsulting.net

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.