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” from the “Object Name Filter” menu to the left of the page.
- Select “service=DumpRestore”
- You will be presented with a form allowing you to manage the dump/restore process. The “DataIn” attribute should point at the xml datafile you wish to restore. By default, this is the initbedework.xml file.
- Initialize the schema:
- Set the attribute Export to True
- Set the attribute Create to True
- Click Apply Changes to set the values.
- Click Invoke for the schema operation.
- Restore the data (Read the note below)
- Navigate back to the DumpRestore service (click Back to MBean)
- Click Invoke for the restoreData operation.
Initialize the Bedework Timezone Server Database
- Select “org.bedework” from the “Object Name Filter” menu to the left of the page.
- Select "service=Tzsvr”
- Look for recreateDb in the bottom section of the form. Click Invoke.
- Look for refreshData in the bottom section of the form. Click Invoke.
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 Sync Server Database
- Select “org.bedework” from the “Object Name Filter” menu to the left of the page.
- Select “service=Synch”
- Initialize the schema:
- Set the attribute Export to True
- Set the attribute Create to True
- Click Apply Changes to set the values.
- Click Invoke for the schema operation.
Bedework Enterprise Calendar, version 3.9