<HTML><HEAD><TITLE>Mail</TITLE>
<META name=GENERATOR
content="KsDHTMLEDLib.ocx, FreeWare HTML Editor 1.164.2, ?Kurt Senfer">
<META content="text/html; charset=GB2312" http-equiv=Content-Type></HEAD>
<BODY style="FONT-SIZE: 9pt; FONT-FAMILY: ËÎÌå" leftMargin=5 topMargin=5 #ffffff>
<DIV>Hi pann</DIV>
<DIV> </DIV>
<DIV>I think this is impossible.</DIV>
<DIV>If you declared a durable queue, whatever in producer or comsumer,once it
is declared, it will be persistent in disk,and even you need not
declare it later anymore.</DIV>
<DIV>I think you can view the state of the queue in rabbitMQ web UI. If it is
durable, the flag will be the letter of "D"</DIV>
<DIV> </DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; PADDING-RIGHT: 0px; MARGIN-RIGHT: 0px">
<DIV
style="FONT-SIZE: 9pt; FONT-VARIANT: normal; BACKGROUND: #e4e4e4; FONT-WEIGHT: normal; FONT-STYLE: normal; LINE-HEIGHT: normal; font-color: black"><B>From:
</B><A href="mailto:pa@zid.nu">pann</A> </DIV>
<DIV
style="FONT-SIZE: 9pt; FONT-VARIANT: normal; FONT-WEIGHT: normal; FONT-STYLE: normal; LINE-HEIGHT: normal"><B>To:
</B><A href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss</A>
</DIV>
<DIV
style="FONT-SIZE: 9pt; FONT-VARIANT: normal; FONT-WEIGHT: normal; FONT-STYLE: normal; LINE-HEIGHT: normal"><B>Sent:
</B>2013-12-03, 17:46:56</DIV>
<DIV
style="FONT-SIZE: 9pt; FONT-VARIANT: normal; FONT-WEIGHT: normal; FONT-STYLE: normal; LINE-HEIGHT: normal"><B>Subject:
</B>[rabbitmq-discuss] durable queues on fanout exchange not durable</DIV>
<DIV><BR></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>
<DIV>Hi,<BR><BR>I am having trouble getting my queues durable on my fanout
exchange.<BR>What I am trying to accomplish is the following:<BR><BR>* One
producer, submitting messages to the exchange. The producer is not<BR>aware of
how many subscribers there will be.<BR>* Multiple subscribers that creates
their on queues. These queues should be<BR>durable. If a subscriber needs to
be restarted, the queue should survive in<BR>order not to lose the
messages.<BR><BR>The problem is that the queues do not survive the restart
unless they are<BR>also declared on the producer side. However that is not
possible since the<BR>producer is not aware of how many consumers there will
be.<BR><BR>The queues are created on the consumer side like
this:<BR>$ch->queue_declare($queue, false, true, false,
false);<BR>$ch->exchange_declare($exchange, 'fanout', false, true,
false);<BR>$ch->queue_bind($queue, $exchange);<BR><BR>and I only declare
the exchange on the producer side:<BR>$ch->exchange_declare($exchange,
'fanout', false, true, false);<BR><BR>I am probably missing something rather
simple, but I have not been able to<BR>find the answer by googling the
problem.<BR><BR>/PA<BR><BR><BR><BR><BR><BR><BR>--<BR>View this message in
context: <A
href="http://rabbitmq.1065348.n5.nabble.com/durable-queues-on-fanout-exchange-not-durable-tp31781.html">http://rabbitmq.1065348.n5.nabble.com/durable-queues-on-fanout-exchange-not-durable-tp31781.html</A><BR>Sent
from the RabbitMQ mailing list archive at
Nabble.com.<BR>_______________________________________________<BR>rabbitmq-discuss
mailing list<BR><A
href="mailto: rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</A><BR><A
href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</A><BR></DIV></DIV></BLOCKQUOTE></BODY></HTML>