Skip to main content


developerWorks  >  Open source | Information Management | Java technology  >

Persist arbitrary data to Apache Derby

Use Java dynamic proxies to create an API for persisting simple data

developerWorks

Level: Intermediate

Daniel Wintschel (daniel@humandoing.net), Author and developer, Freelance

31 Jan 2006

Register now or sign in using your IBM ID and password.

You can quickly and easily persist simple data to Apache Derby by taking advantage of Java™ dynamic proxies. In this tutorial, write a persistence API that you can integrate into any database-powered Java application. You use the API to store an application's configuration information and to notify the application when configuration items change.

In this tutorial

  • The persistence API

  • Java Dynamic Proxy API refresher

  • Design and build the persistence API

  • Implement the API in your application

  • The user interface

Prerequisites

To follow along with this tutorial, you should have a basic knowledge of the Java Servlet API and JDBC. A solid understanding of how Reflection works in Java is also beneficial.


System requirements

To run the example code in this tutorial, you need to:

  • Download and install several applications.
  • Define environmental variables.
  • Extract the .zip file.
  • Modify a web.xml file.

To view the demos included in this tutorial, JavaScript must be enabled in your browser and Macromedia Flash Player 6 or higher must be installed. You can download the latest Flash Player at http://www.macromedia.com/go/getflashplayer/.


Duration

Under 2 hours


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed

Discuss


Learn and share!

Exchange know-how with your peers -- try our new Pass It Along beta app