Menu Search

8.2. Derby Store

The Java broker has a message store implementation backed by Apache Derby. This section will detail configuration for using the DerbyMessageStore.

8.2.1. Configuration

In order to use the DerbyMessageStore, you must configure it for each VirtualHost desired by updating the store element to specify the associated store class and provide a directory location for the data to be written, as shown below.

Example 8.2. Configuring a VirtualHost to use the DerbyMessageStore

<virtualhosts>
  <virtualhost>
    <name>vhostname</name>
    <vhostname>
      <store>
        <class>org.apache.qpid.server.store.DerbyMessageStore</class>
        <environment-path>${QPID_WORK}/derbystore/vhostname</environment-path>
      </store>
      ...
    </vhostname>
  </virtualhost>
</virtualhosts>