Edit bedework-ds.xml to connect Bedework to your database
If you have based your configuration on one of the samples, you should already have a mostly-correct <datasource> stanza inside bedework-ds.xml. Within that stanza, edit <connection-url> which includes three parts you need to adjust: database host, port number, and database name. You'll also need to edit <user-name> (the database user) and <password> (the database user's password).
Add JDBC Drivers to JBoss (in most cases, done for you)
Again, if you've based your configuration on one of the samples, you should have an appropriate JDBC driver in lib/server. During the build, that driver will be copied into <quickstart>/jboss-5.1.0.GA/server/default/lib. If you'd like to update that driver, replace the one in lib/server, then rebuild.
For non-standard configurations only: Configure Hibernate to work with your database
Setting your SQL dialect
Configuring Hibernate to use the appropriate dialect is done in cal.properties. You need to set a few properties
...
For example, the global property if using MySQL5 would be
Code Block |
---|
org.bedework.global.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
|
...