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

Use default ("") exchange for reply-to messages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.3
    • 2.18.4, 2.19.0
    • camel-rabbitmq
    • None
    • Unknown

    Description

      I'm sending request-reply with:

      Object reply = rabbitTemplate.convertSendAndReceive("testexch", "test", "Ping!");
      

      And consuming with:

      from("rabbitmq://localhost:5672/testexch?routingKey=test")
              .transform(body().append(" Pong!"));
      

      And I'm not getting any reply because camel-rabbitmq publishes replies to specified "testexch" exchange instead of default one ("") as stated in https://www.rabbitmq.com/direct-reply-to.html:

      The RPC server will then see a reply-to property with a generated name. It should publish to the default exchange ("") with the routing key set to this value.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              hauler Roman Kalashnikov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: