qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Qpid > Configure the Virtual Hosts via virtualhosts.xml
Date Fri, 20 May 2011 10:36:00 GMT
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/21/_/styles/combined.css?spaceKey=qpid&amp;forWysiwyg=true"
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/qpid/Configure+the+Virtual+Hosts+via+virtualhosts.xml">Configure
the Virtual Hosts via virtualhosts.xml</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~k-wall">keith
        <div id="versionComment">
        Document minimumAlertRepeatGap<br />
                         <h4>Changes (1)</h4>
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >                &lt;maximumMessageSize&gt;2117632&lt;/maximumMessageSize&gt;
&lt;!-- 2Mb --&gt; <br>                &lt;maximumMessageAge&gt;600000&lt;/maximumMessageAge&gt;
 &lt;!-- 10 mins --&gt; <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">
               &lt;!-- Minimum length of time that must elapse between alerts --&gt;
<br>                &lt;minimumAlertRepeatGap&gt;60000&lt;/minimumAlertRepeatGap&gt;
   &lt;!-- 60 secs --&gt; <br></td></tr>
            <tr><td class="diff-unchanged" > <br>                &lt;!--
Define a queue with all default settings --&gt;    <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h2><a name="ConfiguretheVirtualHostsviavirtualhosts.xml-virtualhosts.xmlOverview"></a>virtualhosts.xml

<p>This configuration file contains details of all queues and topics, and associated
properties, to be created on broker startup. These details are configured on a per virtual
host basis.</p>

<p>Note that if you do not add details of a queue or topic you intend to use to this
file, you must first create a consumer on a queue/topic before you can publish to it using
Qpid. </p>

<p>Thus most application deployments need a virtualhosts.xml file with at least some
minimal detail.</p>

<h3><a name="ConfiguretheVirtualHostsviavirtualhosts.xml-XMLFormatwithComments"></a>XML
Format with Comments</h3>

<p>The virtualhosts.xml which currently ships as part of the Qpid distribution is really
targeted at development use, and supports various artifacts commonly used by the Qpid development

<p>As a result, it is reasonably complex. In the example XML below, I have tried to
simplify one example virtual host setup which is possibly more useful for new users of Qpid
or development teams looking to simply make use of the Qpid broker in their deployment.</p>

<p>I have also added some inline comments on each section, which should give some extra
information on the purpose of the various elements.</p>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
    &lt;!-- Sets the default virtual host for connections which do not specify a vh --&gt;
    &lt;!-- Define a virtual host and all it's config --&gt;
            &lt;!-- Define the types of additional AMQP exchange available for this vh
            &lt;!-- Always get amq.direct (for queues) and amq.topic (for topics) by default
                &lt;!-- Example of declaring an additional exchanges type for developer
use only --&gt;
            &lt;!-- Define the set of queues to be created at broker startup --&gt;
                &lt;!-- The properties configured here will be applied as defaults to
all --&gt;
                &lt;!-- queues subsequently defined unless explicitly overridden --&gt;
                &lt;!-- Set threshold values for queue monitor alerting to log --&gt;

 &lt;!-- 4Mb --&gt;
&lt;!-- 2Mb --&gt;
 &lt;!-- 10 mins --&gt;
                &lt;!-- Minimum length of time that must elapse between alerts --&gt;
   &lt;!-- 60 secs --&gt;

                &lt;!-- Define a queue with all default settings --&gt;   
                &lt;!-- Example definitions of queues with overriden settings --&gt;

<h3><a name="ConfiguretheVirtualHostsviavirtualhosts.xml-Usingyourownvirtualhosts.xml"></a>Using
your own virtualhosts.xml</h3>

<p>Note that the config.xml file shipped as an example (or developer default) in the
Qpid distribution contains an element which defines the path to the virtualhosts.xml. </p>

<p>When using your own virtualhosts.xml you must edit this path to point at the location
of your file.</p>

        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        <a href="https://cwiki.apache.org/confluence/display/qpid/Configure+the+Virtual+Hosts+via+virtualhosts.xml">View
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=50851&revisedVersion=5&originalVersion=4">View
        <a href="https://cwiki.apache.org/confluence/display/qpid/Configure+the+Virtual+Hosts+via+virtualhosts.xml?showComments=true&amp;showCommentArea=true#addcomment">Add

Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org

View raw message