Initializing your databases
Start Bedework
Having rebuilt Bedework with your configuration, start up Bedework in order to get to the JMX console. From the JMX console, you have access to the Bedework utilities (mbeans) that create the Bedework database tables and inject some starter data.
Once Bedework is up and running, visit http://yourserver:8080/jmx-console.
(See "The JMX-Console" for information about how to access and secure the JMX console.)
Export the schema, create the database tables, and inject some starter data into the Bedework Database
- Select “org.bedework.bwengine.core” from the “Object Name Filter” menu to the left of the page.
- Select “service=DbConf”
- You will be presented with a form allowing you to initialize the schema (create the database tables)
- Make sure the HibernateDialect attribute matches your database. For example, for Postgresql, it should be set to org.hibernate.dialect.PostgreSQLDialect
- Set the Export attribute to True
- Set the SchemaOutFile to <jboss directory>/server/default/data/bedework/dumprestore/schema.txt
- Click Apply Changes to set the values.
- Go to the bottom part of form and Invoke for the schema operation.
- Return to the front page of the JMX-Console and select "org.bedework.bwengine"
- Select "service=dumprestore"
- You will be presented with another form. This one allow you to fill the tables with data.
- Set the AllowRestore attribute to True
- The “DataIn” attribute should point at the xml datafile you wish to restore. By default, this is the initbedework.xml file (see note below)
- Click Apply Changes to set the values.
- Click Invoke for the restoreData operation.
- Select "org.bedework.bwengine" then "service=indexing"
- This page allows you to reindex the data - the new restored data needs to be indexed:
- Click Invoke for the rebuildIndex operation.
- Click "Back to MBean"
- invoke "rebuildStatus"
- Click "Reinvoke MBean operation" until indexes are rebuilt. Should not take long with the small amount of data.
Initialize the Bedework Carddav Server Database
- Select “org.bedework.carddav” from the “Object Name Filter” menu to the left of the page.
- Select “Name=user-dirHandler,Type=dirhandler,service=CardDav”
- Set hibernate dialect. There are two parameters to the SetHibernateProperty operation:
- Set the name parameter to hibernate.dialect
- Set the value parameter to the db dialect you want.
- Hibernate class names for the dialect take the form org.hibernate.dialect.X
For example:
for hsql (as shipped) - org.hibernate.dialect.HSQLDialect
for postgresql - org.hibernate.dialect.PostgreSQLDialect
for oracle10g - org.hibernate.dialect.Oracle10gDialect
for mysql - org.hibernate.dialect.MySQL5InnoDBDialect (innodb is required)
- Hibernate class names for the dialect take the form org.hibernate.dialect.X
- Click Invoke for the operation.
- Click the Back to Mbean button
- Invoke the saveConfig operation (at the bottom of the operations list) to make it permanent
- Click the Back to Mbean button
- Probably safer to do a restart of jboss at this point
- Initialize the schema:
- Set the attribute Export to True
- Click Apply Changes to set the values.
- Click Invoke for the schema operation.
- Check the console for errors
Initialize the Bedework Synch Server Database
- Select “org.bedework.synch” from the “Object Name Filter” menu to the left of the page.
- Select “Name=synchConf,Type=synchConf,service=Synch"
- Initialize the schema:
- Set the attribute Export to True
- Click Apply Changes to set the values.
- Click Invoke for the schema operation.
- Check the console for errors. In the console you should see "INFO [SchemaExport] schema export complete"
Bedework Enterprise Calendar Server, version 3.10