setConcurrentConsumers with camel-activemq6-starter for JmsComponent not working? - Stack Overflow

admin2025-04-18  4

I'm using Apache Camel 4.8.0 with Spring Boot 3.3.4 and Apache ActiveMQ Classic (5 or 6).

I need to set concurrent consumers programmatically for my ActiveMQComponent (Apache Camel JmsComponent).

There are 2 versions for the ActiveMQComponent :

  • .8.x/activemq6-component.html
  • .8.x/activemq-component.html

My problem is :

  • With activemq6-component the setConcurrentConsumers is always at the default value (1)
  • With activemq-component it's ok

Is there any issue with this dependency (activemq6) ?

<dependency>
  <groupId>org.apache.camel.springboot</groupId>
  <artifactId>camel-activemq6-starter</artifactId>
</dependency>

Another question : Why a specific activemq6-component for ActiveMQ Classic 6 ? (The activemq-component seems to work with ActiveMQ Classic 6).

Move back to activemq does the job :

<dependency>
  <groupId>org.apache.camel.springboot</groupId>
  <artifactId>camel-activemq-starter</artifactId>
</dependency>

Thanks

转载请注明原文地址:http://www.anycun.com/QandA/1744919121a89478.html