<div dir="ltr">Looking at your problem from a high-level: if you have a single message in a queue, and multiple consumers attached to that queue, that message will only ever be delivered to one consumer. A possible alternative topology would be to have each consumer have its own temp queue, then for each temp queue bind it to the exchange so that the message(s) in question get delivered to all the necessary queues, the upon successfully consuming the desired message the consuming entities could delete the queue in question.<div>
<br></div><div>I haven&#39;t used amqpcpp extensively so I don&#39;t know the in&#39;s and out&#39;s of that library enough to give you a solid example. �I&#39;d recommend checking out the examples and starting from there to see if you can do what you need to do.<br>

<div><br></div><div>-Alan</div><div><br></div><div>PS: sending me an off-list email asking me to respond to this message a minute after you post it to the discussion list will not make me respond you any faster. Please understand that I have other responsibilities and my contributions here are done whenever I have a free moment, having to sort through extra emails wastes my time I&#39;d rather be putting into giving good answers. (See netiquette rule 4:�<a href="http://www.albion.com/netiquette/rule4.html" target="_blank">http://www.albion.com/netiquette/rule4.html</a>)</div>




</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 4, 2013 at 10:11 AM, antony <span dir="ltr">&lt;<a href="mailto:antony.pulicken@gmail.com" target="_blank">antony.pulicken@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
This is my scenario:<br>
<br>
We have a scneario where in the consumer will create a temperory queue and<br>
wait on that queue till it gets a message from the publisher. Each temperory<br>
queue can have more than one consumer and there can be multiple temperory<br>
queues like this. The consumer will disconnect from the queue after<br>
consuming one message.<br>
<br>
I&#39;m using a &#39;Topic&#39; exchange as there are specific messages that needs to<br>
get published to these queues based on a routing key.<br>
<br>
How can I make sure that all the consumers listening on a queue will get the<br>
message published and the temp queue should get deleted after that? Any tips<br>
or sample code snippet will be of great help.<br>
<br>
Regards,<br>
Antony.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/amqpcpp-Temp-Queue-tp29342.html" target="_blank">http://rabbitmq.1065348.n5.nabble.com/amqpcpp-Temp-Queue-tp29342.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" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br></div>