Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9824

Add possibility to let the server generate a name for a queue

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.17.0
    • Fix Version/s: None
    • Component/s: camel-rabbitmq
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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

              channel.queueDeclare(queue, endpoint.isDurable(), false, endpoint.isAutoDelete(), arguments);
              channel.queueBind(queue, exchange, emptyIfNull(routingKey));
      

      i declare the queue like this:

            DeclareOk declareOk = channel.queueDeclare();
            endpoint.setQueue(declareOk.getQueue());
      

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                acosentino Andrea Cosentino
                Reporter:
                fabian.chanton@gmx.ch Fabian Chanton
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: