That's not that easy as the routing key has the format:<div><br></div><div>site.user.param1.param2.param3</div><div><br></div><div>and different users are interested in different things, for example : "site1"."toto".#, "site2".#, "site1"."toto"."paramtoto".# .....</div>
<div><br></div><div>so we cannot really create all the queue in advance.</div><div><br></div><div>Cheers,</div><div>Fabien</div><div><br><br><div class="gmail_quote">On 7 January 2011 14:33, Matthias Radestock <span dir="ltr"><<a href="mailto:matthias@rabbitmq.com">matthias@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Fab,<div><div></div><div class="h5"><br>
<br>
underattack7 wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is it possible to allow a user to create and bind a queue to a topic exchange with a specific routing key ?<br>
<br>
For example, I have :<br>
- virtual host: host_test<br>
- user : usertest<br>
- exchange: exchangetest<br>
<br>
I would like the usertest to be able to create queues on exchangetest but only with the routing key "toto.*.*"<br>
<br>
<br>
From the documentation, I cannot see how to achieve such things.<br>
</blockquote>
<br></div></div>
You can't. But given that you know all the above, why don't you (the creator of the usertest user) create the queue and binding, so the user doesn't have to create anything?<br>
<br>
Regards,<br><font color="#888888">
<br>
Matthias.<br>
</font></blockquote></div><br></div>