(Quick Reference)

virtualHost

Purpose

Sets the virtual host to use on the connection.

Examples

rabbitmq {
    connection = {
        connection(
            host: "rabbit.example.com",
            username: "foo",
            password: "bar",
            virtualHost: "vhost1"
        )
    }
}

Description

The virtual host is useful to segregate exchanges and queues when multiple applications are using the same physical RabbitMQ server. If this is omitted, the default virtual host is used.