# Virtual Hosts

## Configuring And Managing

One or more Virtual Hosts can be configured on the Broker. The HTTP management interfaces can be used to add and delete Virtual Hosts.

A new Virtual Host can be created in two ways:

- Supplying simply a store type and a store path: In this case, the virtual host attributes are currently derived from default attribute values defined on the broker. This is the preferred approach.

- Supplying the path to a Virtual Host XML configuration file: In this case, specific per-virtualhost attribute configuration can be set in the file, as well as pre-configuring queues, exchanges, etc. This is no longer the preferred approach and will likely be removed in a future release, however it is currently still neccessary to support certain use-cases such as per-virtualhost attribute configuration, and specialised store configuration such as for the BDB HA Message Store.

The following Virtual Host Managing operations are available from Web Management Console:

- A new Virtual Host can be added into Broker by pressing "Add Virtual Host" button on the Broker tab.

- The existing Virtual Host(s) can be removed by pressing "Remove Virtual Host" button on the Broker tab.

- The Virtual Host details can be viewed on the Virtual Host tab. This tab can be displayed after clicking onto Virtual Host Name in the Broker object tree or onto the Virtual Host row in the Virtual Hosts grid on the Broker tab.

- Queues can be configured (added/removed) from Virtual Host tab

- Exchange can be configured (added/removed) from Virtual Host tab

- Existing Exchange/Queue tabs can be navigated from Virtual Host tab