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

spring-rabbitmq - Component does not Respect replyTimeout for InOut Exchanges

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      Hi folks,

      I think I found a bug in the spring-rabbitmq component. It seems that the replyTimeout settings (neither path nor spring properties) will be accepted by the component. I have create a sample project for you to show the issue. The route is very simple:

      public void configure() throws Exception {
              from("timer:hello?repeatCount=1")
                  .transform(simple("Random number ${random(0,100)}"))
                  .log(LoggingLevel.ERROR,
                          ">>>>>>> Timeout of replay should happen after 10 secs (application.properties) or 15 secs as " +
                                  "here configured")
                  .to(ExchangePattern.InOut, "spring-rabbitmq:foo?routingKey=mykey&replyTimeout=15000");
          }
      

      I expect that the listener will throw a "Reply timed out" AmqpReplyTimeoutException after 15 seconds (or 10 seconds as defined in the application.properties). What is happening:

       

      You see that after 30 secs the exception occurred. It seems that we are hitting here the default configurations of Spring AMQ instead the setup configurations.

       

      Attachments

        1. imageaa.png
          122 kB
          Adam Lukaszewski
        2. image.png
          114 kB
          Adam Lukaszewski

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              adam.lukaszewski Adam Lukaszewski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: