Please dont post your questions multiple times a day and/or week, or
across multiple existing threads. It won't get you an answer any
quicker. People will reply if/when they are able. Also, please create
a new thread for new questions, you can always link to old posts from
others if they seem relevant.


Yes, you can define specific queues and exchanges in your initial
configuration (or define auto creation policies). Create an initial
config [1] and you will see the virtualHostInitialConfiguration
element referred to in this discussion and the docs [2]. Supply your
initial virtual host configuration there, in string form or a file://
url.

You can use an existing broker configuration file to see how to
configure things, e.g create queues/exchanges in the management UI and
look at the brokers configuration (e.g at <work
dir>/default/config/default.json for the 'default' virtual host
provided out the box). Note you dont need to supply all the IDs,
options, etc, you can provide the minimal config detail such as
name/type/etc as your needs require.

E.g. this might be a basic stringified virtualHostInitialConfiguration
to define a vhost config with an initial exchange and queue:
"virtualHostInitialConfiguration" : "{\"type\":\"BDB\", \"exchanges\"
: [{ \"name\" : \"yourExchange\", \"type\" : \"direct\", \"durable\" :
true }],  \"queues\" : [{ \"name\" : \"yourQueue\", \"type\" :
\"standard\", \"durable\" : true } ]}"

Note as it defaults to "${qpid.initial_config_virtualhost_config}" you
can even set it using configuration properties as described in the
thread or like other examples shown in the docs, rather than supplying
a broker initial configuration file at all, if that's all you wanted
to change in the initial config.

[1] 
http://qpid.apache.org/releases/qpid-broker-j-8.0.0/book/Java-Broker-Initial-Configuration-Create-Initial-Config.html
[2] 
http://qpid.apache.org/releases/qpid-broker-j-8.0.0/book/Java-Broker-Virtual-Host-Initial-Configuration.html

Robbie

On Wed, 5 Aug 2020 at 07:48, Carlos Yesid <yesid...@gmail.com> wrote:
>
> Hi,
> I´m building a similar integration test, but I want create a queue and
> exanchange in Json file configuration each initial configuration. How do I
> create queues and exchanges that will always be instantiated at broker
> startup. It is possible?
>
> Thank you
>
>
>
> --
> Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> For additional commands, e-mail: users-h...@qpid.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to