Hi
I'm experimenting with asserts in queue re-declarations using the C++
messaging client.
I start with a queue declaration using this address:
test-11;{assert:always, create:always, node:{durable:False,
type:queue, x-declare:{auto-delete:True, exclusive:True}}}
Then I try to re-declare the same queue using different node settings
for durable, x-bindings, x-declare(auto-delete, exclusive, arguments).
Since assert is enabled, I would expect to get an error whenever the
required settings differ from the actual settings of the existing
queue. (Well, maybe I would not expect the bindings to be checked, by
the rest yes.)
This however only seems to work for the durable attribute, but not for
the others (assert seems to ignore whatever is in x-declare and
x-bindings).
My questions are:
- Is that the expected behaviour?
- What exactly is assert supposed to check?
- Can I detect a difference in required and actual x-declare and
x-bindings settings using the C++ messaging client v0.7?
These are the re-declare addresses I'm using (only the first one
results in an error):
test-11;{assert:always, create:always, node:{durable:True, type:queue,
x-declare:{auto-delete:True, exclusive:True}}}
test-11;{assert:always, create:always, node:{durable:False,
type:queue, x-declare:{auto-delete:True, exclusive:False}}}
test-11;{assert:always, create:always, node:{durable:False,
type:queue, x-declare:{auto-delete:False, exclusive:True}}}
test-11;{assert:always, create:always, node:{durable:False,
type:queue, x-bindings:[{exchange:amq.direct, key:test-11}],
x-declare:{auto-delete:True, exclusive:True}}}
test-11;{create:always, node:{durable:False, type:queue,
x-declare:{arguments:{qpid.file_count:1, qpid.file_size:256,
qpid.max_size:1024}, auto-delete:True, exclusive:True}}}
Cheers
Jiri
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]