You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/04/26 15:14:12 UTC
[jira] [Commented] (CAMEL-9824) Add possibility to let the server
generate a name for a queue
[ https://issues.apache.org/jira/browse/CAMEL-9824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15258058#comment-15258058 ]
ASF GitHub Bot commented on CAMEL-9824:
---------------------------------------
GitHub user FabianChanton opened a pull request:
https://github.com/apache/camel/pull/959
CAMEL-9824 Add URI parameter to declare server named queues
As described in CAMEL-9824 We need a possibility to declare server named queues.
To achieve this I would like to add a new URI parameter "serverNamedQueue".
If this parameter is set, the queue is declared via
`channel.queueDeclare();`
instead of
`channel.queueDeclare(queue, endpoint.isDurable(), false, endpoint.isAutoDelete(), arguments);`
The drawback of this solution is that several other options (isDurable etc) are ignored. If someone has a different idea on how to solve this I am more than happy to hear it!
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/FabianChanton/camel master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/959.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #959
----
commit f822e750e19a5c703945ad4d7d1a21ff8ae4ef00
Author: Fabian Chanton <fa...@misurio.ch>
Date: 2016-04-26T13:06:51Z
CAMEL-9824 Add URI parameter to declare server named queues
----
> Add possibility to let the server generate a name for a queue
> -------------------------------------------------------------
>
> Key: CAMEL-9824
> URL: https://issues.apache.org/jira/browse/CAMEL-9824
> Project: Camel
> Issue Type: Improvement
> Components: camel-rabbitmq
> Affects Versions: 2.17.0
> Reporter: Fabian Chanton
> 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(), arguments);
> 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
(v6.3.4#6332)