# This file is in relaxed JSON format (it allows comments and trailing commas).
#
# Logical buses used in pool.config.json must be defined here, specifying
# the conection parameters to the STOMP broker that will service them.
#
# In this example four logical buses are defined, all residing in the same
# local broker. For development purposes is handy to use a single broker to 
# hold all logical buses and easily simulate a complex topology, but in 
# production enviroments it is desirable to isolate brokers from each other.
#
# Each bus definition accepts the following parameters:
#
#  - bus-id  : unique identifier of the logical bus (required)
#  - cluster : identifier of the cluster of buses that this bus belongs to (if any)
#  - host    : hostname or IP address of the broker (required)
#  - port    : port of the broker (default is 61613)
#  - tls     : if set to true enables the use of TLS on broker connection
#  - user    : username used to connect to the broker (required)
#  - pass    : password used to connect to the broker (required)
#  - vhost   : virtual host on broker (ignored by some brokers)

[
    {
        "bus-id"  : "backend-A",
        "cluster" : "backend",
        "host"    : "localhost",
        "user"    : "backend",
        "pass"    : "def456",
        "vhost"   : "/backend-A",
        "default" : 1,
    },
    {
        "bus-id"  : "backend-B",
        "cluster" : "backend",
        "host"    : "localhost",
        "user"    : "backend",
        "pass"    : "def456",
        "vhost"   : "/backend-B",
    },
    {
        "bus-id"  : "frontend-A",
        "cluster" : "frontend",
        "host"    : "localhost",
        "user"    : "frontend",
        "pass"    : "abc123",
        "vhost"   : "/frontend-A",
    },
#   {
#       "bus-id"  : "frontend-B",  # Can be uncommented when using ToyBroker or RabbitMQ
#       "cluster" : "frontend",    # (ActiveMQ does not support virtual hosts)
#       "host"    : "localhost",
#       "user"    : "frontend",
#       "pass"    : "abc123",
#       "vhost"   : "/frontend-B",
#   },
    {
        "bus-id"  : "toybroker",
        "host"    : "localhost",
        "user"    : "backend",
        "pass"    : "def456",
        "vhost"   : "/toybroker",
    },
]