Are you sure you have access to declare the queue on the default
exchange? You can use the same user/password and login to the Rabbit
webgui and perform the same operation manually to verify.

I think it should work because I don't think endpoint declares the
exchange as well as just "/" means revert to the default exchange
which exist by default so it shouldn't have to declare that.

On Thu, Feb 25, 2016 at 1:19 PM, FabianChanton [via Camel]
<ml-node+s465427n5778270...@n5.nabble.com> wrote:
> Hello Souciance
>
> Thanks for your answer!
>
> The standard case you described works well for me.
>
> However the following does not work:
>
> I create an endpoint with the following URI:
>
> rabbitmq://<host>:<port>/
>
> (leaving the exchange part empty because i need to declare the queue on the
> default exchange)
>
> This causes the following response from the server:
>
> reply-text=ACCESS_REFUSED - operation not permitted on the default exchange
>
> I guess this is because the RabbitMQ endpoint declares the queue AND
> exchange, but the default exchange is already present on the server.
>
> If I try "declare=false" it doesn't work either because the Endpoint assumes
> a random queue ID and that  queue doesn't exist (because we don't declare
> it)
>
> I saw that there is an option "skipQueueDeclare" which would only declare
> the exchange but not the queue. What i am looking for is the opposite:
> declare the queue but not the exchange. Something similar to the
> exchangeDeclarePassive method of the com.rabbitmq.client.channel class.
>
> Best Regards
>
> Fabian
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/RabbitMQ-Declare-queue-on-existing-exchange-tp5778263p5778270.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428...@n5.nabble.com
> To unsubscribe from Camel - Users, click here.
> NAML




--
View this message in context: 
http://camel.465427.n5.nabble.com/RabbitMQ-Declare-queue-on-existing-exchange-tp5778263p5778271.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to