An example of the default 'Initial Configuration' JSON file the broker uses is provided below:
Example 5.1. JSON 'Initial configuration' File
{ "name": "${broker.name}", "modelVersion" : "9.0", "authenticationproviders" : [ { "name" : "plain", "type" : "Plain", "users" : [ { "name" : "guest", "type" : "managed", "password" : "guest" } ] } ], "brokerloggers" : [ { "name" : "logfile", "type" : "File", "fileName" : "${qpid.work_dir}${file.separator}log${file.separator}qpid.log", "brokerloginclusionrules" : [ { "name" : "Root", "type" : "NameAndLevel", "level" : "WARN", "loggerName" : "ROOT" }, { "name" : "Qpid", "type" : "NameAndLevel", "level" : "INFO", "loggerName" : "org.apache.qpid.*" }, { "name" : "Operational", "type" : "NameAndLevel", "level" : "INFO", "loggerName" : "qpid.message.*" }, { "name" : "Statistics", "type" : "NameAndLevel", "level" : "INFO", "loggerName" : "qpid.statistics.*" } ] }, { "name" : "memory", "type" : "Memory", "brokerloginclusionrules" : [ { "name" : "Root", "type" : "NameAndLevel", "level" : "WARN", "loggerName" : "ROOT" }, { "name" : "Qpid", "type" : "NameAndLevel", "level" : "INFO", "loggerName" : "org.apache.qpid.*" }, { "name" : "Operational", "type" : "NameAndLevel", "level" : "INFO", "loggerName" : "qpid.message.*" }, { "name" : "Statistics", "type" : "NameAndLevel", "level" : "INFO", "loggerName" : "qpid.statistics.*" } ] } ], "ports" : [ { "name" : "AMQP", "port" : "${qpid.amqp_port}", "authenticationProvider" : "plain", "virtualhostaliases" : [ { "name" : "nameAlias", "type" : "nameAlias" }, { "name" : "defaultAlias", "type" : "defaultAlias" }, { "name" : "hostnameAlias", "type" : "hostnameAlias" } ] }, { "name" : "HTTP", "port" : "${qpid.http_port}", "authenticationProvider" : "plain", "protocols" : [ "HTTP" ] }], "virtualhostnodes" : [ { "name" : "default", "type" : "JSON", "defaultVirtualHostNode" : "true", "virtualHostInitialConfiguration" : "\\${qpid.initial_config_virtualhost_config}" } ], "plugins" : [ { "type" : "MANAGEMENT-HTTP", "name" : "httpManagement" } ] }
In the configuration above the following entries are stored:
Authentication Provider of type PlainPasswordFile with name "passwordFile".
Two Port entries: "AMQP", "HTTP"
Virtualhost Node called default.
One management plugin: "httpManagement" of type "MANAGEMENT-HTTP".
Broker attributes are stored as a root entry.
Apache Qpid, Messaging built on AMQP; Copyright © 2015 The Apache Software Foundation; Licensed under the Apache License, Version 2.0; Apache Qpid, Qpid, Qpid Proton, Proton, Apache, the Apache feather logo, and the Apache Qpid project logo are trademarks of The Apache Software Foundation; All other marks mentioned may be trademarks or registered trademarks of their respective owners