...
The “-sparse” version contains no events, no categories, no locations, no contacts, and the barest of calendar structures. It is a good starting point if you want to build up a system from scratch.
JMX Console
Bedework uses the JMX console built into JBoss to dump and restore data. In the default quickstart distribution, you get to the JMX console by navigating to “JMX Console” from the root of the JBoss server at http://localhost:8080/ or by directly visiting http://localhost:8080/jmx-console/
User name: admin
Password: bWjmx00 (if this password doesn't work, or to change the password (encouraged!), see Securing Bedework )
To dump a data file:
- With Bedework running, go to the JMX console: at http://localhost:8080/jmx-console/
- 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 “DataOut” attribute tells Bedework where to put the file. By default, this is in <jboss-dir>/server/default/data/bedework/dumprestore/
- If you've changed any attributes, click “Apply Changes”
- Click “Invoke” for the “dumpData” operation.
- You should find a file with a name similar to “bwdata20100205T130857.xml” in your DataOut directory.
...
- Stop the Bedework system if running.
- Delete (or rename) the following directories
- <jboss-dir>/server/default/data/bedework/hypersonic/CalDb3p7.*
- <jboss-dir>/server/default/data/activemq
- <jboss-dir>/server/default/data/activemq-data
- <jboss-dir>/server/default/data/bedework/lucene
- Start the Bedework system. The first three directories above should be recreated, and you should see an error in the log “Schema 'SA' does not exist”, which is HSQL complaining about not finding the Bedework schema that you've just removed.
- Go to the JMX console: at http://localhost:8080/jmx-console/
- 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:
- Navigate back to the DumpRestore service (click “Back to MBean”)
- Click “Invoke” for the “restoreData” operation.
...