Saturday, August 14, 2010

Apache Derby - as Embedded Database

The most convenient part for Apache Derby is it can be an embedded database in JVM. When JVM starts, database starts as well, when JVM shutdown database shutdown as well. it's lightweight, portable and easy to embedded to any application.


Following are steps that how you create test application in Eclipse with Apache Derby DB embedded.
Download Apache Derby from web and extract it to folders you prefer.

Create project and include all jar files in derby lib folder.


Copy SimpleApp.java (under demo/program/simple folder) to project src folder and run it. you will get simliar console output, which means derby is successfully installed and executed.

No comments:

Post a Comment