Hi Jeremy,
You can find some information on this here:
http://qpid.apache.org/releases/qpid-0.22/java-broker/book/Java-Broker-Virtual-Hosts.html,
which may be what you have read, in which case it perhaps needs tweaked to
be more obvious. Short version: start the broker and use the web management
interface to add a new virtualhost, naming it in accordance with a
virtualhost define in the config file and using the option to provide the
path to a config file. You can then optionally change the 'default virtual
host' attribute on the broker to select your new one, and then remove the
predefined 'default' virtualhost.
Alternatively, you could customise the 'initial configuration' the broker
uses to populate its config store by providing your own. See
http://qpid.apache.org/releases/qpid-0.22/java-broker/book/Java-Broker-Configuring-And-Managing.htmlfor
details on controlling the initial configuration. If going this way,
the JSON for defininig a virtualhost which uses a config file looks like
for 0.22 :
"virtualhosts" : [ {
"name" : "vhostName",
"configPath" : "/path/to/virtualhosts.xml"
} ]
(Final option, using that information you could also go old-school and
hand edit the already-populated config.json file you have)
Robbie
On 17 July 2013 00:20, Jeremy Wagner wrote:
> Hello,
>
> According to the 0.22 documentation, the Java broker still supports the
> virtualhost XML configuration file, but it doesn't state how to pass it to
> the Java broker? Can anyone please shed some lights on this? Thanks.
>
> Regards,
> Jeremy
>
>