Menu Search

14.8. Configuring Exchanges

To declare Exchanges within Virtual Host configuration, add the appropriate xml to the virtualhost.xml configuration file within the exchanges element. An example of such declaration is shown below:

Example 14.6. Configuring Exchanges on VirtualHost

<virtualhosts>
  <virtualhost>
    <name>vhostname</name>
      ...
            <exchanges>
                <exchange>
                    <type>direct</type>
                    <name>test.direct</name>
                    <durable>true</durable>
                </exchange>
                <exchange>
                    <type>topic</type>
                    <name>test.topic</name>
                </exchange>
            </exchanges>
      ...
    </vhostname>
  </virtualhost>
</virtualhosts>