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

camel-spring-rabbitmq - Cannot Create or Bind Producers

    XMLWordPrintableJSON

Details

    • Moderate

    Description

      Hi!

      If I use this code,

      @Component 
      public class SampleCamelRouter extends RouteBuilder { 
         @Override 
         public void configure() throws Exception { 
            from("timer:hello?period=2000") 
               .transform(simple("Bigger random number ${random(100,200)}")) 
               .to("spring-rabbitmq:foo?queues=myqueue&routingKey=mykey"); 
            } 
      }

       
      I am required to manually create queues, binds, and exchanges. However, in version 3.x.x (rabbitmq-component) this was not necessary. Even looking at the documentation, the auto-declare property was functional for both consumers and producers a.k.a common (https://camel.apache.org/components/3.21.x/rabbitmq-component.html#_component_option_declare). Nevertheless, in the current documentation, it is mentioned only for consumers (https://camel.apache.org/components/4.0.x/spring-rabbitmq-component.html#_endpoint_query_option_autoDeclare).

      Will it added in future? Or is another way to implements without declare one-by-one, using something auto declared like in other version?

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              lucasark Lucas da Silva Lima
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: