You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2024/03/10 10:20:00 UTC

[jira] [Resolved] (CAMEL-20299) camel-spring-rabbitmq - Cannot Create or Bind Producers

     [ https://issues.apache.org/jira/browse/CAMEL-20299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-20299.
---------------------------------
    Resolution: Fixed

> camel-spring-rabbitmq - Cannot Create or Bind Producers
> -------------------------------------------------------
>
>                 Key: CAMEL-20299
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20299
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-rabbitmq, camel-spring-rabbitmq
>    Affects Versions: 4.3.0
>            Reporter: Lucas da Silva Lima
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.5.0
>
>
> Hi!
> If I use this code,
> {code:java}
> @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"); 
>       } 
> }{code}
> {{ }}
> 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?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)