Menu Search

14.3. Configuring BDBMessageStore

In order to use the BDBMessageStore, 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 14.2. Configuring a VirtualHost to use the BDBMessageStore

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

14.3.1. Passing BDB environment configuration options

It is possible to pass BDB environment from the virtualhost.xml. Environment configuration options are passed using envConfig elements within the store element.

For example, to override the BDB environment configuration options je.cleaner.threads and je.log.fileMax

Example 14.3. Configuring BDB Environment Configuration

      <store>
	...
	<envConfig>
	  <name>je.cleaner.threads</name>
	  <value>2</value>
	</envConfig>
	<envConfig>
	  <name>je.log.fileMax</name>
	  <value>5000000</value>
	</envConfig>
	  ...
      </store>