On Jan 17, 2006, at 11:39 AM, [EMAIL PROTECTED] wrote:


would like to know if there is an example of using derby in a j2ee webapp.

It won't be any different from any other database. You connect to the database via JDBC API (DataSource or DriverManager) and go from there. Derby advantage is that you have an embedded mode, so on the low end, you won't have to run a separate server process.

Since you asked for an example, here goes a self-plug:

http://objectstyle.org/confluence/display/CAY/Cayenne+PetStore

Cayenne PetStore contains Derby preconfigured to use the embedded mode, so the DB creation and initial data load happen automatically when the web app starts.

Andrus Adamchik





Reply via email to