Set prefix for temporary queue name

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Set prefix for temporary queue name

Haster
Hi there!

Is there any chance to create temporary queue with some defined prefix?

For example, I want what all such queues starts from haster_ prefix and
in result full queue name was such as haster_kjdnwdwkedwe.
Reply | Threaded
Open this post in threaded view
|

Re: Set prefix for temporary queue name

Simon MacMullen-2
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
_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Set prefix for temporary queue name

Haster
Simon, thanks for reply
Reply | Threaded
Open this post in threaded view
|

Re: Set prefix for temporary queue name

Marcus Kröger

But isn't it possible to set up a policy that only allows queue creation if they start with a specific prefix?

Marcus

Am 06.02.2014 07:06 schrieb "Haster" <[hidden email]>:
Simon, thanks for reply



--
View this message in context: http://rabbitmq.1065348.n5.nabble.com/Set-prefix-for-temporary-queue-name-tp33118p33135.html
Sent from the RabbitMQ mailing list archive at Nabble.com.
_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Set prefix for temporary queue name

michaelklishin
2014-02-06 20:42 GMT+04:00 Marcus Kröger <[hidden email]>:
But isn't it possible to set up a policy that only allows queue creation if they start with a specific prefix?

It is:

http://www.rabbitmq.com/access-control.html
http://www.rabbitmq.com/man/rabbitmqctl.1.man.html#Access%20control
--
MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin

_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss