views:

309

answers:

0

Hi all,

i'm developing a web-application for managing and sharing images and more general media-types at all.

My technology stack is:

  • Java 6
  • Spring 2.5x
  • JPA 1.0
  • JCR 1.0 with Jackrabbit 1.6.x
  • ACID-able DB like Derby oder MySQL with InnoDB
  • Porting to Spring 3.0, JPA 2.0 and JCR 2.0 is in the queue

During deployment i have to provide some data and initialize the database as vell as the java content repository(JCR).

For setting up the initial data of the database i thought about ddlutils from apache. During development i'm using unit-tests for initializing of both, db and jcr.

Here my questions:

  1. Generally, how could a deployment look at best way for web.applications? Should i use something like [izpack](http://izpack.org/) ?
  2. Should i let JPA generate the DB-Structure or use a tool for it? If tool, which open source tools are out there?
  3. How can i initialize the DB and the JC-Repository?

Waiting for reply with best regards,
Hannes