Configure the Broker via config.xml has been edited by Marnie McCormack (Apr 05, 2007).

(View changes)


Broker config.xml Overview

The broker config.xml file which is shipped in the etc directory of any Qpid binary distribution details various options and configuration for the Java Qpid broker implementation.

In tandem with the virtualhosts.xml file, the config.xml file allows you to control much of the deployment detail for your Qpid broker in a flexible fashion.

Note that you can pass the config.xml you wish to use for your broker instance to the broker using the -c command line option. In turn, you can specify the paths for the broker password file, virtualhosts.xml and log4j.xml files in your config.xml for simplicity.

For more information about command line configuration options please see Qpid+Design+-+Configuration.

File Format

This is an overview of the top level of the config file. Description of each section is embedded below. Each section is then described in detail in their own section.

<!-- Various initial global definitions -->
<!-- Various connection information about the type connections the broker should listen for-->
<!-- Enablement of management functionality -->
<!-- Various advanced flags -->
<!-- Definition of available security options -->
<!-- Definition of available virtual hosts -->
<!-- Heartbeat configuration -->
<!-- General queue configuration options-->
<!-- Configuration of various virtual hosts. -->

Configuration Sections - Detailed Information

The following sections provide an element by element overview of the config.xml.


The setting of the prefixes for QPID_HOME and QPID_WORK allows environment variables to be used throughout the config.xml and removes the need for hard coding of paths in this file.

See the Getting Started Guide for more information on these variables.



The connector section allows configuration of SSL and related keystore settings. By default this section is commented out and thus SSL is not enabled.

    <!-- Uncomment out this block and edit the keystorePath and keystorePassword
         to enable SSL support


This element allows the user to switch the connectivity of the management console on/off i.e. if the enabled tag is set to false you will not be able to connect a management console to this broker instance.



The elements in this section are used under the covers in the broker. At present, we do not recommend any changes to these settings.

   <filterchain enableExecutorPool="true"/>


This section lists all the principal databases that are available for authentication and the default access control. The databases understand what SASL mechanisms can be used against their data and so are responsible for registering these SASL mechanisms. Currently we do not provide means of limiting these mechanisms.

            <!-- A name for referencing this database-->
            <!-- The type of principal database -->
            <!-- Any attributes associated with the database. Here it is a password file to load. -->
    <!-- This access value can be any access manager. The built in defaults are AllowAll and DenyAll -->


This section allows you to define the set of virtual hosts which will be contained in your broker instance, and the message store & location for each. NB: The commented out section referencing BDBMessageStore should be used for all applications wishing to use persistence to disk.

If you are using transient messaging you can use the MemoryMessageStore, with the caveat that scalability for transient use is limited by heap size.

In our example config.xml, we define three virtual hosts which we commonly use for development (development), system testing (test) and integration testing (localhost). In the config.xml the per virtual host sections define both the Message Store in use (MemoryMessageStore for non-persistent applications or BDBMessageStore for persistent application usage) and the security for each virtual host. The security settings are under currently development so subject to changes.

The default virtual host for connections which do not specify a host on the url is 'test' in the example config.xml.

                    <!-- <class></class>
                    <environment-path>${work}/localhost-store</environment-path> -->


                    <!-- Need protocol changes to allow this-->
                        <!-- Currently this can't be used as Vhost isn't specified at connection start only connection open -->


The Qpid broker sends an internal (only) heartbeat. This element allows configuration of the frequency of this heartbeat. At present, we recommend that you leave this section unchanged !



This should NOT be changed lightly as it sets the broker up to automatically bind queues to exchanges.

It could theoretically be used to prevent users creating new queues at runtime, assuming that you have created all queues/topics etc at broker startup. However, best advice is to leave unchanged for now.



This element allows you to specify a location for the virtualhosts.xml file that you wish to use. If you are not using a subdirectory under $QPID_HOME you can provide a fully qualified path instead. For more information on the content of the virtualhosts.xml file please see Configure the Virtual Hosts via virtualhosts.xml


Powered by Atlassian Confluence (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request

Unsubscribe or edit your notifications preferences