[rabbitmq-discuss] Set prefix for temporary queue name

Simon MacMullen simon at rabbitmq.com
Wed Feb 5 14:22:16 GMT 2014

On 05/02/2014 12:22PM, Haster wrote:
> Is there any chance to create temporary queue with some defined prefix?

There's no such concept as "temporary queue" in AMQP. Normally when you 
want a temporary queue, you would create a queue which was server-named 
and exclusive (and/or autodelete). Many client APIs have a convenience 
method to do this, e.g. Channel.queueDeclare() in the Java client.

But exclusive / autodelete aren't really related to the name. So the 
question you're asking becomes "can you create a server-named queue with 
some defined prefix?"

The answer to that is no. But you don't need to use server-named queues 
if you don't want. Just generate a queue name yourself - it can still be 
exclusive / autodelete and thus usable as a temporary queue.

Cheers, Simon

Simon MacMullen
RabbitMQ, Pivotal

More information about the rabbitmq-discuss mailing list