##
## Licensed to the Apache Software Foundation (ASF) under one
## or more contributor license agreements.  See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership.  The ASF licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"); you may not use this file except in compliance
## with the License.  You may obtain a copy of the License at
##
##   http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing,
## software distributed under the License is distributed on an
## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
## KIND, either express or implied.  See the License for the
## specific language governing permissions and limitations
## under the License
##


[
##
## Container section - Configures the general operation of the AMQP container.
##
    ["container", {
##
## workerThreads - The number of threads that will be created to
## process message traffic and other application work (timers, nonAmqp
## file descriptors, etc.)
##
## The number of threads should be related to the number of available
## processor cores.  To fully utilize a quad-core system, set the
## number of threads to 4.
##
	"workerThreads": 4,
	
##
## containerName - The name of the AMQP container.  If not specified,
## the container name will be set to a value of the container's
## choosing.  The automatically assigned container name is not
## guaranteed to be persistent across restarts of the container.
##
	"containerName": "Qpid.Dispatch.Router.A"
    }],

    ["router", {
	"mode": "standalone",
	"id": "QDR"
    }],

##
## Listeners and Connectors
##
    ["listener", {
	"host": "0.0.0.0",
	"port": 20000,
	"saslMechanisms": "ANONYMOUS"
    }],
    ["address", {
	"prefix": "closest",
	"distribution": "closest"
    }],

    ["address", {
	"prefix": "multicast",
	"distribution": "multicast"
    }],

    ["address", {
	"prefix": "broadcast",
	"distribution": "multicast"
    }],

    ["address", {
	"prefix": "unicast",
	"distribution": "closest"
    }],

    ["address", {
	"prefix": "exclusive",
	"distribution": "closest"
    }]
]

