db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Using Derby in J2EE webapp
Date Tue, 17 Jan 2006 18:00:15 GMT

On Jan 17, 2006, at 11:39 AM, Samuel.Perez@equifax.com 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






Mime
View raw message