camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabian Chanton (JIRA)" <>
Subject [jira] [Commented] (CAMEL-9824) Add possibility to let the server generate a name for a queue
Date Wed, 26 Oct 2016 06:36:58 GMT


Fabian Chanton commented on CAMEL-9824:

The specifications in our project have changed and the server no longer generates the name
for the queue (now we have to name it in a unique way ourselves).
So this is no longer an issue for us. Do you think this would still be a good addition to
the component? I'm not quite sure because of the drawbacks mentioned above.

> Add possibility to let the server generate a name for a queue
> -------------------------------------------------------------
>                 Key: CAMEL-9824
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-rabbitmq
>    Affects Versions: 2.17.0
>            Reporter: Fabian Chanton
>            Assignee: Andrea Cosentino
>            Priority: Minor
> This problem is similar to CAMEL-9815
> For a project we have to declare a queue without a name. The server then auto-generates
a random name and passes it back.
> If we do not specify a queue name, RabbitMQEndpoint defines a random name for us. This
however is not allowed on the server.
> I locally tried a fix for RabbitMQDeclareSupport, where instead of using 
> {code:java}
>         channel.queueDeclare(queue, endpoint.isDurable(), false, endpoint.isAutoDelete(),
>         channel.queueBind(queue, exchange, emptyIfNull(routingKey));
> {code}
> i declare the queue like this:
> {code:java}
>       DeclareOk declareOk = channel.queueDeclare();
>       endpoint.setQueue(declareOk.getQueue());
> {code}
> This has some drawbacks, as it completely ignores endpoint.isDurable(), endpoint.isAutoDelete()
etc. and even the routing key is ignored.
> I don't know how to best add a possibility to declare server named queues.

This message was sent by Atlassian JIRA

View raw message