See my comment on QPID-1758. It's not meaningful to create an exclusive
queue with qpid-config because that queue will be exclusive to the
session created by qpid-config.
My understanding is that a queue is declared 'exclusive' by the client
that wants to use it. Once the session closes, the queue is available
for other sessions but the exclusive attribute no longer holds unless
it's re-declared.
-Ted
ffrenchm wrote:
Hello again,
is there anybody who can explains me where I'm wrong on my tests or if there
is any bug about it ?
Thanks
ffrenchm wrote:
Hello,
I'm going to make some tests with exclusive queue.
I declare them exclusive thanks a patched qpid-console published
https://issues.apache.org/jira/browse/QPID-1758 here .
test 1 :
----------
after restart I loose my exclusive option on my queue and there is a
strange behavior
when I try to redefine my queue...
$./qpid-config -a localhost:5671 add queue TEST --exclusive --durable
$./qpid-config -a localhost:5671 queues
Queue Name Attributes
==================================================
TEST --durable excl --file-size=24 --file-count=8
reply-dekatonshir.18810.1 auto-del excl
topic-dekatonshir.18810.1 auto-del excl
(restart qpidd)
$./qpid-config -a localhost:5671 queues
Queue Name Attributes
==================================================
TEST --durable --file-size=24 --file-count=8
reply-dekatonshir.18838.1 auto-del excl
topic-dekatonshir.18838.1 auto-del excl
$./qpid-config -a localhost:5671 del queue TEST --force
$./qpid-config -a localhost:5671 add queue TEST --exclusive --durable
$./qpid-config -a localhost:5671 queues
Queue Name Attributes
==================================================
TEST --durable --file-size=24 --file-count=8
TEST --durable excl --file-size=24 --file-count=8
reply-dekatonshir.18919.1 auto-del excl
topic-dekatonshir.18919.1 auto-del excl
(restart qpidd)
$./qpid-config -a localhost:5671 queues
Queue Name Attributes
==================================================
TEST --durable --file-size=24 --file-count=8
reply-dekatonshir.18967.1 auto-del excl
topic-dekatonshir.18967.1 auto-del excl
test 2 :
-----------
I define an exclusive queue TEST and then I start 2 JMS consumers on this
queue. When starting the
second consumer I do not have any options telling me that there is already
a consumer on my exclusive
queue. I start a JMS publisher which send a lot of messages : the two
consumers are receiving messages...
Do I make some mistakes here ? I do no understand where ....
Thanks for all