This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new d4e2293c9843 CAMEL-27063: camel-jms - a topic consumer with several
concurrent consumers and no shared subscription logs a WARN (#30225)
d4e2293c9843 is described below
commit d4e2293c98432d7e3a2962bd77118ee29f5f69e8
Author: Federico Mariani <[email protected]>
AuthorDate: Mon Nov 16 22:53:11 2026 +0100
CAMEL-27063: camel-jms - a topic consumer with several concurrent consumers
and no shared subscription logs a WARN (#30225)
Co-authored-by: Claude <[email protected]>
---
.../apache/camel/catalog/components/activemq.json | 8 +-
.../apache/camel/catalog/components/activemq6.json | 8 +-
.../org/apache/camel/catalog/components/amqp.json | 8 +-
.../org/apache/camel/catalog/components/jms.json | 8 +-
.../apache/camel/catalog/docs/jms-component.adoc | 48 ++++
.../apache/camel/component/activemq/activemq.json | 8 +-
.../camel/component/activemq6/activemq6.json | 8 +-
.../org/apache/camel/component/amqp/amqp.json | 8 +-
.../org/apache/camel/component/jms/jms.json | 8 +-
.../camel-jms/src/main/docs/jms-component.adoc | 48 ++++
.../camel/component/jms/JmsConfiguration.java | 14 +-
.../apache/camel/component/jms/JmsConsumer.java | 37 +++
.../jms/JmsTopicConcurrentConsumersTest.java | 253 +++++++++++++++++++++
.../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc | 8 +
.../dsl/Activemq6ComponentBuilderFactory.java | 8 +-
.../dsl/ActivemqComponentBuilderFactory.java | 8 +-
.../component/dsl/AmqpComponentBuilderFactory.java | 8 +-
.../component/dsl/JmsComponentBuilderFactory.java | 8 +-
.../endpoint/dsl/AMQPEndpointBuilderFactory.java | 16 +-
.../dsl/ActiveMQ6EndpointBuilderFactory.java | 16 +-
.../dsl/ActiveMQEndpointBuilderFactory.java | 16 +-
.../endpoint/dsl/JmsEndpointBuilderFactory.java | 16 +-
22 files changed, 510 insertions(+), 58 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/activemq.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/activemq.json
index c883332a1e12..3d1992ba2327 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/activemq.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/activemq.json
@@ -42,8 +42,8 @@
"autoStartup": { "index": 14, "kind": "property", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 15, "kind": "property", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 16, "kind": "property", "displayName": "Cache
Level Name", "group": "consumer", "label": "consumer", "required": false,
"type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuratio [...]
- "concurrentConsumers": { "index": 17, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
- "maxConcurrentConsumers": { "index": 18, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
+ "concurrentConsumers": { "index": 17, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
+ "maxConcurrentConsumers": { "index": 18, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
"replyToDeliveryPersistent": { "index": 19, "kind": "property",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 20, "kind": "property", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 21, "kind": "property", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
@@ -182,8 +182,8 @@
"autoStartup": { "index": 12, "kind": "parameter", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 13, "kind": "parameter", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 14, "kind": "parameter", "displayName":
"Cache Level Name", "group": "consumer", "label": "consumer", "required":
false, "type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configurati [...]
- "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
- "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
+ "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
+ "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
"replyToDeliveryPersistent": { "index": 17, "kind": "parameter",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 18, "kind": "parameter", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 19, "kind": "parameter", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/activemq6.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/activemq6.json
index cc38e8163cac..9a14d1309261 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/activemq6.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/activemq6.json
@@ -42,8 +42,8 @@
"autoStartup": { "index": 14, "kind": "property", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 15, "kind": "property", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 16, "kind": "property", "displayName": "Cache
Level Name", "group": "consumer", "label": "consumer", "required": false,
"type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuratio [...]
- "concurrentConsumers": { "index": 17, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
- "maxConcurrentConsumers": { "index": 18, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
+ "concurrentConsumers": { "index": 17, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
+ "maxConcurrentConsumers": { "index": 18, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
"replyToDeliveryPersistent": { "index": 19, "kind": "property",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 20, "kind": "property", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 21, "kind": "property", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
@@ -182,8 +182,8 @@
"autoStartup": { "index": 12, "kind": "parameter", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 13, "kind": "parameter", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 14, "kind": "parameter", "displayName":
"Cache Level Name", "group": "consumer", "label": "consumer", "required":
false, "type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configurati [...]
- "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
- "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
+ "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
+ "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
"replyToDeliveryPersistent": { "index": 17, "kind": "parameter",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 18, "kind": "parameter", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 19, "kind": "parameter", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/amqp.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/amqp.json
index b7950440547b..144e4be63929 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/amqp.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/amqp.json
@@ -48,8 +48,8 @@
"autoStartup": { "index": 21, "kind": "property", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 22, "kind": "property", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 23, "kind": "property", "displayName": "Cache
Level Name", "group": "consumer", "label": "consumer", "required": false,
"type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuratio [...]
- "concurrentConsumers": { "index": 24, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
- "maxConcurrentConsumers": { "index": 25, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
+ "concurrentConsumers": { "index": 24, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
+ "maxConcurrentConsumers": { "index": 25, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
"replyToDeliveryPersistent": { "index": 26, "kind": "property",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 27, "kind": "property", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 28, "kind": "property", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
@@ -189,8 +189,8 @@
"autoStartup": { "index": 12, "kind": "parameter", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 13, "kind": "parameter", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 14, "kind": "parameter", "displayName":
"Cache Level Name", "group": "consumer", "label": "consumer", "required":
false, "type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configurati [...]
- "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
- "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
+ "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
+ "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
"replyToDeliveryPersistent": { "index": 17, "kind": "parameter",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 18, "kind": "parameter", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 19, "kind": "parameter", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jms.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jms.json
index f0a792b9e420..a6a190e94f99 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jms.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jms.json
@@ -37,8 +37,8 @@
"autoStartup": { "index": 10, "kind": "property", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 11, "kind": "property", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 12, "kind": "property", "displayName": "Cache
Level Name", "group": "consumer", "label": "consumer", "required": false,
"type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuratio [...]
- "concurrentConsumers": { "index": 13, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
- "maxConcurrentConsumers": { "index": 14, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
+ "concurrentConsumers": { "index": 13, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
+ "maxConcurrentConsumers": { "index": 14, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
"replyToDeliveryPersistent": { "index": 15, "kind": "property",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 16, "kind": "property", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 17, "kind": "property", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
@@ -176,8 +176,8 @@
"autoStartup": { "index": 12, "kind": "parameter", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 13, "kind": "parameter", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 14, "kind": "parameter", "displayName":
"Cache Level Name", "group": "consumer", "label": "consumer", "required":
false, "type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configurati [...]
- "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
- "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
+ "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
+ "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
"replyToDeliveryPersistent": { "index": 17, "kind": "parameter",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 18, "kind": "parameter", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 19, "kind": "parameter", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/jms-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/jms-component.adoc
index 53e8fe260290..6103a391b1ea 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/jms-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/jms-component.adoc
@@ -1185,6 +1185,54 @@ You can configure this option in one of the following
ways:
* On the endpoint URI or,
* By invoking `setConcurrentConsumers()` directly on the `JmsEndpoint`.
+==== Concurrent Consuming from a topic
+
+On a topic, each concurrent consumer is a subscriber of its own and receives
every message. With
+`concurrentConsumers=3` on a topic, each message is processed three times.
This is also the case when
+`concurrentConsumers` or `maxConcurrentConsumers` is set on the component (for
its queues) and a route of that component
+consumes from a topic. Camel logs a WARN when such a consumer starts.
+
+To have several consumers share the messages of a topic, so each message is
processed once, use a shared subscription
+(requires a JMS 2.0 broker) with `subscriptionShared=true` and a
`subscriptionName`. Add `subscriptionDurable=true` to
+keep the messages sent while no consumer is connected:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("jms:topic:SomeTopic?concurrentConsumers=5&subscriptionShared=true&subscriptionName=myApp")
+ .bean(MyClass.class);
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+ <from
uri="jms:topic:SomeTopic?concurrentConsumers=5&subscriptionShared=true&subscriptionName=myApp"/>
+ <to uri="bean:MyClass"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+ from:
+ uri: jms:topic:SomeTopic
+ parameters:
+ concurrentConsumers: 5
+ subscriptionShared: true
+ subscriptionName: myApp
+ steps:
+ - to:
+ uri: bean:MyClass
+----
+====
+
==== Concurrent Consuming with async consumer
Notice that each concurrent consumer will only pick up the next available
diff --git
a/components/camel-activemq/src/generated/resources/META-INF/org/apache/camel/component/activemq/activemq.json
b/components/camel-activemq/src/generated/resources/META-INF/org/apache/camel/component/activemq/activemq.json
index c883332a1e12..3d1992ba2327 100644
---
a/components/camel-activemq/src/generated/resources/META-INF/org/apache/camel/component/activemq/activemq.json
+++
b/components/camel-activemq/src/generated/resources/META-INF/org/apache/camel/component/activemq/activemq.json
@@ -42,8 +42,8 @@
"autoStartup": { "index": 14, "kind": "property", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 15, "kind": "property", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 16, "kind": "property", "displayName": "Cache
Level Name", "group": "consumer", "label": "consumer", "required": false,
"type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuratio [...]
- "concurrentConsumers": { "index": 17, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
- "maxConcurrentConsumers": { "index": 18, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
+ "concurrentConsumers": { "index": 17, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
+ "maxConcurrentConsumers": { "index": 18, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
"replyToDeliveryPersistent": { "index": 19, "kind": "property",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 20, "kind": "property", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 21, "kind": "property", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
@@ -182,8 +182,8 @@
"autoStartup": { "index": 12, "kind": "parameter", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 13, "kind": "parameter", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 14, "kind": "parameter", "displayName":
"Cache Level Name", "group": "consumer", "label": "consumer", "required":
false, "type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configurati [...]
- "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
- "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
+ "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
+ "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
"replyToDeliveryPersistent": { "index": 17, "kind": "parameter",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 18, "kind": "parameter", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 19, "kind": "parameter", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
diff --git
a/components/camel-activemq6/src/generated/resources/META-INF/org/apache/camel/component/activemq6/activemq6.json
b/components/camel-activemq6/src/generated/resources/META-INF/org/apache/camel/component/activemq6/activemq6.json
index cc38e8163cac..9a14d1309261 100644
---
a/components/camel-activemq6/src/generated/resources/META-INF/org/apache/camel/component/activemq6/activemq6.json
+++
b/components/camel-activemq6/src/generated/resources/META-INF/org/apache/camel/component/activemq6/activemq6.json
@@ -42,8 +42,8 @@
"autoStartup": { "index": 14, "kind": "property", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 15, "kind": "property", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 16, "kind": "property", "displayName": "Cache
Level Name", "group": "consumer", "label": "consumer", "required": false,
"type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuratio [...]
- "concurrentConsumers": { "index": 17, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
- "maxConcurrentConsumers": { "index": 18, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
+ "concurrentConsumers": { "index": 17, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
+ "maxConcurrentConsumers": { "index": 18, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
"replyToDeliveryPersistent": { "index": 19, "kind": "property",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 20, "kind": "property", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 21, "kind": "property", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
@@ -182,8 +182,8 @@
"autoStartup": { "index": 12, "kind": "parameter", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 13, "kind": "parameter", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 14, "kind": "parameter", "displayName":
"Cache Level Name", "group": "consumer", "label": "consumer", "required":
false, "type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configurati [...]
- "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
- "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
+ "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
+ "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
"replyToDeliveryPersistent": { "index": 17, "kind": "parameter",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 18, "kind": "parameter", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 19, "kind": "parameter", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
diff --git
a/components/camel-amqp/src/generated/resources/META-INF/org/apache/camel/component/amqp/amqp.json
b/components/camel-amqp/src/generated/resources/META-INF/org/apache/camel/component/amqp/amqp.json
index b7950440547b..144e4be63929 100644
---
a/components/camel-amqp/src/generated/resources/META-INF/org/apache/camel/component/amqp/amqp.json
+++
b/components/camel-amqp/src/generated/resources/META-INF/org/apache/camel/component/amqp/amqp.json
@@ -48,8 +48,8 @@
"autoStartup": { "index": 21, "kind": "property", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 22, "kind": "property", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 23, "kind": "property", "displayName": "Cache
Level Name", "group": "consumer", "label": "consumer", "required": false,
"type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuratio [...]
- "concurrentConsumers": { "index": 24, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
- "maxConcurrentConsumers": { "index": 25, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
+ "concurrentConsumers": { "index": 24, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
+ "maxConcurrentConsumers": { "index": 25, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
"replyToDeliveryPersistent": { "index": 26, "kind": "property",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 27, "kind": "property", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 28, "kind": "property", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
@@ -189,8 +189,8 @@
"autoStartup": { "index": 12, "kind": "parameter", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 13, "kind": "parameter", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 14, "kind": "parameter", "displayName":
"Cache Level Name", "group": "consumer", "label": "consumer", "required":
false, "type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configurati [...]
- "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
- "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
+ "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
+ "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
"replyToDeliveryPersistent": { "index": 17, "kind": "parameter",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 18, "kind": "parameter", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 19, "kind": "parameter", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
diff --git
a/components/camel-jms/src/generated/resources/META-INF/org/apache/camel/component/jms/jms.json
b/components/camel-jms/src/generated/resources/META-INF/org/apache/camel/component/jms/jms.json
index f0a792b9e420..a6a190e94f99 100644
---
a/components/camel-jms/src/generated/resources/META-INF/org/apache/camel/component/jms/jms.json
+++
b/components/camel-jms/src/generated/resources/META-INF/org/apache/camel/component/jms/jms.json
@@ -37,8 +37,8 @@
"autoStartup": { "index": 10, "kind": "property", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 11, "kind": "property", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 12, "kind": "property", "displayName": "Cache
Level Name", "group": "consumer", "label": "consumer", "required": false,
"type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuratio [...]
- "concurrentConsumers": { "index": 13, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
- "maxConcurrentConsumers": { "index": 14, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
+ "concurrentConsumers": { "index": 13, "kind": "property", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for r [...]
+ "maxConcurrentConsumers": { "index": 14, "kind": "property",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/repl [...]
"replyToDeliveryPersistent": { "index": 15, "kind": "property",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 16, "kind": "property", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 17, "kind": "property", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
@@ -176,8 +176,8 @@
"autoStartup": { "index": 12, "kind": "parameter", "displayName": "Auto
Startup", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies whether the consumer container
should auto-startup." },
"cacheLevel": { "index": 13, "kind": "parameter", "displayName": "Cache
Level", "group": "consumer", "label": "consumer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the cache level by ID for the underlying
JMS resources. See cacheLevelName option for more details." },
"cacheLevelName": { "index": 14, "kind": "parameter", "displayName":
"Cache Level Name", "group": "consumer", "label": "consumer", "required":
false, "type": "enum", "javaType": "java.lang.String", "enum": [ "CACHE_AUTO",
"CACHE_CONNECTION", "CACHE_CONSUMER", "CACHE_NONE", "CACHE_SESSION" ],
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"CACHE_AUTO", "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configurati [...]
- "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
- "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
+ "concurrentConsumers": { "index": 15, "kind": "parameter", "displayName":
"Concurrent Consumers", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the default number of concurrent
consumers when consuming from JMS (not for [...]
+ "maxConcurrentConsumers": { "index": 16, "kind": "parameter",
"displayName": "Max Concurrent Consumers", "group": "consumer", "label":
"consumer", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request\/rep [...]
"replyToDeliveryPersistent": { "index": 17, "kind": "parameter",
"displayName": "Reply To Delivery Persistent", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Specifies whether to use
persistent delivery by default for replies." },
"selector": { "index": 18, "kind": "parameter", "displayName": "Selector",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.jms.JmsConfiguration", "configurationField":
"configuration", "description": "Sets the JMS selector to use" },
"subscriptionDurable": { "index": 19, "kind": "parameter", "displayName":
"Subscription Durable", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jms.JmsConfiguration",
"configurationField": "configuration", "description": "Set whether to make the
subscription durable. The durable subscription name to [...]
diff --git a/components/camel-jms/src/main/docs/jms-component.adoc
b/components/camel-jms/src/main/docs/jms-component.adoc
index 53e8fe260290..6103a391b1ea 100644
--- a/components/camel-jms/src/main/docs/jms-component.adoc
+++ b/components/camel-jms/src/main/docs/jms-component.adoc
@@ -1185,6 +1185,54 @@ You can configure this option in one of the following
ways:
* On the endpoint URI or,
* By invoking `setConcurrentConsumers()` directly on the `JmsEndpoint`.
+==== Concurrent Consuming from a topic
+
+On a topic, each concurrent consumer is a subscriber of its own and receives
every message. With
+`concurrentConsumers=3` on a topic, each message is processed three times.
This is also the case when
+`concurrentConsumers` or `maxConcurrentConsumers` is set on the component (for
its queues) and a route of that component
+consumes from a topic. Camel logs a WARN when such a consumer starts.
+
+To have several consumers share the messages of a topic, so each message is
processed once, use a shared subscription
+(requires a JMS 2.0 broker) with `subscriptionShared=true` and a
`subscriptionName`. Add `subscriptionDurable=true` to
+keep the messages sent while no consumer is connected:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("jms:topic:SomeTopic?concurrentConsumers=5&subscriptionShared=true&subscriptionName=myApp")
+ .bean(MyClass.class);
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+ <from
uri="jms:topic:SomeTopic?concurrentConsumers=5&subscriptionShared=true&subscriptionName=myApp"/>
+ <to uri="bean:MyClass"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+ from:
+ uri: jms:topic:SomeTopic
+ parameters:
+ concurrentConsumers: 5
+ subscriptionShared: true
+ subscriptionName: myApp
+ steps:
+ - to:
+ uri: bean:MyClass
+----
+====
+
==== Concurrent Consuming with async consumer
Notice that each concurrent consumer will only pick up the next available
diff --git
a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
index 1e78da6f9023..85110e1d8cfa 100644
---
a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
+++
b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
@@ -155,7 +155,9 @@ public class JmsConfiguration implements Cloneable {
description = "Specifies the default number of concurrent
consumers when consuming from JMS (not for request/reply over JMS)."
+ " See also the maxMessagesPerTask option to
control dynamic scaling up/down of threads."
+ " When doing request/reply over JMS then the
option replyToConcurrentConsumers is used to control number"
- + " of concurrent consumers on the reply message
listener.")
+ + " of concurrent consumers on the reply message
listener."
+ + " On a topic, each consumer has its own
subscription and receives every message,"
+ + " unless subscriptionShared is enabled.")
private int concurrentConsumers = 1;
@UriParam(defaultValue = "1", label = "producer",
description = "Specifies the default number of concurrent
consumers when doing request/reply over JMS."
@@ -225,7 +227,9 @@ public class JmsConfiguration implements Cloneable {
description = "Specifies the maximum number of concurrent
consumers when consuming from JMS (not for request/reply over JMS)."
+ " See also the maxMessagesPerTask option to
control dynamic scaling up/down of threads."
+ " When doing request/reply over JMS then the
option replyToMaxConcurrentConsumers is used to control number"
- + " of concurrent consumers on the reply message
listener.")
+ + " of concurrent consumers on the reply message
listener."
+ + " On a topic, each consumer has its own
subscription and receives every message,"
+ + " unless subscriptionShared is enabled.")
private int maxConcurrentConsumers;
@UriParam(label = "producer",
description = "Specifies the maximum number of concurrent
consumers when using request/reply over JMS."
@@ -1241,6 +1245,9 @@ public class JmsConfiguration implements Cloneable {
* <p>
* When doing request/reply over JMS, then the option
replyToConcurrentConsumers is used to control the number of
* concurrent consumers on the reply message listener.
+ * <p>
+ * On a topic, each consumer has its own subscription and receives every
message, unless subscriptionShared is
+ * enabled.
*/
public void setConcurrentConsumers(int concurrentConsumers) {
this.concurrentConsumers = concurrentConsumers;
@@ -1464,6 +1471,9 @@ public class JmsConfiguration implements Cloneable {
* <p>
* When doing request/reply over JMS, then the option
replyToMaxConcurrentConsumers is used to control the number of
* concurrent consumers on the reply message listener.
+ * <p>
+ * On a topic, each consumer has its own subscription and receives every
message, unless subscriptionShared is
+ * enabled.
*/
public void setMaxConcurrentConsumers(int maxConcurrentConsumers) {
this.maxConcurrentConsumers = maxConcurrentConsumers;
diff --git
a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConsumer.java
b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConsumer.java
index 2047ab8d2056..12005bef3462 100644
---
a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConsumer.java
+++
b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConsumer.java
@@ -32,6 +32,8 @@ import org.apache.camel.support.DefaultConsumer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jms.listener.AbstractMessageListenerContainer;
+import org.springframework.jms.listener.DefaultMessageListenerContainer;
+import org.springframework.jms.listener.SimpleMessageListenerContainer;
import org.springframework.jms.support.JmsUtils;
/**
@@ -162,6 +164,7 @@ public class JmsConsumer extends DefaultConsumer implements
Suspendable {
createMessageListenerContainer();
}
final AbstractMessageListenerContainer container = listenerContainer;
+ warnIfTopicConsumersDoNotShareSubscription(container);
getEndpoint().onListenerContainerStarting();
if (getEndpoint().getConfiguration().isAsyncStartListener()) {
@@ -190,6 +193,40 @@ public class JmsConsumer extends DefaultConsumer
implements Suspendable {
prepareAndStartListenerContainer(listenerContainer);
}
+ /**
+ * On a topic, each consumer of the listener container is a subscriber of
its own, unless the subscription is
+ * shared: with more than one consumer, every message is processed once
per consumer.
+ */
+ private void
warnIfTopicConsumersDoNotShareSubscription(AbstractMessageListenerContainer
container) {
+ if (!container.isPubSubDomain() || container.isSubscriptionShared()) {
+ return;
+ }
+ int min;
+ int max;
+ if (container instanceof DefaultMessageListenerContainer dmlc) {
+ min = dmlc.getConcurrentConsumers();
+ max = dmlc.getMaxConcurrentConsumers();
+ } else if (container instanceof SimpleMessageListenerContainer) {
+ // the simple container does not scale: it uses
maxConcurrentConsumers when set
+ JmsConfiguration configuration = getEndpoint().getConfiguration();
+ min = Math.max(configuration.getConcurrentConsumers(),
configuration.getMaxConcurrentConsumers());
+ max = min;
+ } else {
+ return;
+ }
+ if (max <= 1) {
+ return;
+ }
+ String consumers = min == max ? String.valueOf(max) : "up to " + max;
+ String effect = container.isSubscriptionDurable()
+ ? "a durable subscription that is not shared accepts only one
consumer"
+ : "each consumer has its own subscription, so every message is
processed " + consumers + " times";
+ LOG.warn("The consumer on topic {} has {} concurrent consumers without
a shared subscription: {}."
+ + " Set subscriptionShared=true (JMS 2.0) with a
subscriptionName to share the messages between the consumers,"
+ + " or use a single consumer (concurrentConsumers=1 and no
maxConcurrentConsumers).",
+ getDestinationName(container), consumers, effect);
+ }
+
private void
prepareAndStartListenerContainer(AbstractMessageListenerContainer container) {
if (listenerContainer != container) {
// an early exit without the lock: the check that decides is the
one under containerLock below.
diff --git
a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsTopicConcurrentConsumersTest.java
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsTopicConcurrentConsumersTest.java
new file mode 100644
index 000000000000..65daa845294c
--- /dev/null
+++
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsTopicConcurrentConsumersTest.java
@@ -0,0 +1,253 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.jms;
+
+import java.util.List;
+import java.util.concurrent.CopyOnWriteArrayList;
+import java.util.concurrent.TimeUnit;
+
+import jakarta.jms.ConnectionFactory;
+
+import org.apache.activemq.artemis.api.core.SimpleString;
+import org.apache.activemq.artemis.core.server.ActiveMQServer;
+import org.apache.activemq.artemis.core.server.BindingQueryResult;
+import org.apache.camel.CamelContext;
+import org.apache.camel.ProducerTemplate;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.test.infra.artemis.common.ConnectionFactoryHelper;
+import
org.apache.camel.test.infra.artemis.services.AbstractArtemisEmbeddedService;
+import org.apache.camel.test.infra.artemis.services.ArtemisService;
+import org.apache.camel.test.infra.artemis.services.ServiceAware;
+import org.apache.camel.test.infra.core.CamelContextExtension;
+import org.apache.camel.test.infra.core.DefaultCamelContextExtension;
+import org.apache.camel.test.infra.core.annotations.ContextFixture;
+import org.apache.logging.log4j.Level;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.core.LogEvent;
+import org.apache.logging.log4j.core.Logger;
+import org.apache.logging.log4j.core.appender.AbstractAppender;
+import org.apache.logging.log4j.core.config.Property;
+import org.awaitility.Awaitility;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Order;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.extension.RegisterExtension;
+
+import static
org.apache.camel.component.jms.JmsComponent.jmsComponentAutoAcknowledge;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+/**
+ * A consumer on a topic with more than one concurrent consumer and no shared
subscription has one subscription per
+ * consumer, so each message is processed once per consumer. The consumer logs
a WARN about it when it starts.
+ */
+public class JmsTopicConcurrentConsumersTest extends AbstractJMSTest {
+
+ private static final String PREFIX = "JmsTopicConcurrentConsumersTest.";
+
+ @Order(2)
+ @RegisterExtension
+ public static CamelContextExtension camelContextExtension = new
DefaultCamelContextExtension();
+
+ private static final JmsConsumerLogCaptor CAPTOR = new
JmsConsumerLogCaptor();
+
+ protected CamelContext context;
+ protected ProducerTemplate template;
+
+ @BeforeAll
+ static void captureLog() {
+ ((Logger) LogManager.getLogger(JmsConsumer.class)).addAppender(CAPTOR);
+ }
+
+ @AfterAll
+ static void stopCapture() {
+ ((Logger)
LogManager.getLogger(JmsConsumer.class)).removeAppender(CAPTOR);
+ }
+
+ @Test
+ public void
endpointConcurrentConsumersOnTopicProcessEachMessageOncePerConsumer() throws
Exception {
+ awaitSubscriptions(PREFIX + "endpoint", 3, 3);
+ MockEndpoint mock = getMockEndpoint("mock:endpoint");
+ mock.expectedBodiesReceived("x", "x", "x");
+ mock.setAssertPeriod(500);
+
+ template.sendBody("jms:topic:" + PREFIX + "endpoint", "x");
+
+ MockEndpoint.assertIsSatisfied(context);
+ assertWarning(PREFIX + "endpoint", "3 concurrent consumers");
+ }
+
+ @Test
+ public void componentConcurrentConsumersApplyToTopicEndpoints() {
+ awaitSubscriptions(PREFIX + "component", 3, 3);
+ assertWarning(PREFIX + "component", "3 concurrent consumers");
+ }
+
+ @Test
+ public void maxConcurrentConsumersOnTopic() {
+ assertWarning(PREFIX + "max", "up to 4 concurrent consumers");
+ }
+
+ @Test
+ public void simpleConsumerTypeOnTopic() {
+ awaitSubscriptions(PREFIX + "simple", 2, 2);
+ assertWarning(PREFIX + "simple", "2 concurrent consumers");
+ }
+
+ @Test
+ public void singleConsumerOnTopic() throws Exception {
+ awaitSubscriptions(PREFIX + "single", 1, 1);
+ MockEndpoint mock = getMockEndpoint("mock:single");
+ mock.expectedBodiesReceived("x");
+ mock.setAssertPeriod(500);
+
+ template.sendBody("jms:topic:" + PREFIX + "single", "x");
+
+ MockEndpoint.assertIsSatisfied(context);
+ assertNoWarning(PREFIX + "single");
+ }
+
+ @Test
+ public void sharedSubscriptionWithThreeConsumers() throws Exception {
+ // one shared subscription queue, with the 3 consumers of the listener
container on it
+ awaitSubscriptions(PREFIX + "shared", 1, 3);
+ MockEndpoint mock = getMockEndpoint("mock:shared");
+ mock.expectedBodiesReceived("x");
+ mock.setAssertPeriod(500);
+
+ template.sendBody("jms:topic:" + PREFIX + "shared", "x");
+
+ MockEndpoint.assertIsSatisfied(context);
+ assertNoWarning(PREFIX + "shared");
+ }
+
+ @Test
+ public void queueWithThreeConsumers() throws Exception {
+ MockEndpoint mock = getMockEndpoint("mock:queue");
+ mock.expectedBodiesReceived("x");
+ mock.setAssertPeriod(500);
+
+ template.sendBody("jms:queue:" + PREFIX + "queue", "x");
+
+ MockEndpoint.assertIsSatisfied(context);
+ assertNoWarning(PREFIX + "queue");
+ }
+
+ @Override
+ protected String getComponentName() {
+ return "jms";
+ }
+
+ @ContextFixture
+ @Override
+ public void configureContext(CamelContext context) throws Exception {
+ super.configureContext(context);
+ // concurrentConsumers set on the component also applies to its topic
endpoints
+ ConnectionFactory cf =
ConnectionFactoryHelper.createConnectionFactory(service);
+ JmsComponent component = jmsComponentAutoAcknowledge(cf);
+ component.setConcurrentConsumers(3);
+ context.addComponent("jmsc", component);
+ }
+
+ @Override
+ protected RouteBuilder createRouteBuilder() {
+ return new RouteBuilder() {
+ @Override
+ public void configure() {
+ from("jms:topic:" + PREFIX +
"endpoint?concurrentConsumers=3").to("mock:endpoint");
+ from("jmsc:topic:" + PREFIX +
"component").to("mock:component");
+ from("jms:topic:" + PREFIX +
"max?maxConcurrentConsumers=4").to("mock:max");
+ from("jms:topic:" + PREFIX +
"simple?consumerType=Simple&concurrentConsumers=2").to("mock:simple");
+ from("jms:topic:" + PREFIX + "single").to("mock:single");
+ from("jms:topic:" + PREFIX +
"shared?concurrentConsumers=3&subscriptionShared=true"
+ + "&subscriptionName=JmsTopicConcurrentConsumersTest")
+ .to("mock:shared");
+ from("jms:queue:" + PREFIX +
"queue?concurrentConsumers=3").to("mock:queue");
+ }
+ };
+ }
+
+ @Override
+ public CamelContextExtension getCamelContextExtension() {
+ return camelContextExtension;
+ }
+
+ @BeforeEach
+ void setUpRequirements() {
+ context = camelContextExtension.getContext();
+ template = camelContextExtension.getProducerTemplate();
+ }
+
+ private static void awaitSubscriptions(String address, int queues, int
consumers) {
+ Awaitility.await().atMost(20, TimeUnit.SECONDS).untilAsserted(() -> {
+ ActiveMQServer server = broker();
+ BindingQueryResult bindings =
server.bindingQuery(SimpleString.of(address));
+ assertEquals(queues, bindings.getQueueNames().size(),
"subscription queues on " + address);
+ int total = 0;
+ for (SimpleString queue : bindings.getQueueNames()) {
+ total += server.queueQuery(queue).getConsumerCount();
+ }
+ assertEquals(consumers, total, "consumers on " + address);
+ });
+ }
+
+ private static ActiveMQServer broker() {
+ @SuppressWarnings("unchecked")
+ ArtemisService embedded = ((ServiceAware<ArtemisService>)
service).getService();
+ return ((AbstractArtemisEmbeddedService)
embedded).getEmbeddedBrokerService().getActiveMQServer();
+ }
+
+ private static void assertWarning(String destination, String expected) {
+ List<String> warnings = CAPTOR.warningsAbout(destination);
+ assertEquals(1, warnings.size(), "WARN about " + destination + ": " +
warnings);
+ String warning = warnings.get(0);
+ assertTrue(warning.contains(expected), warning);
+ assertTrue(warning.contains("subscriptionShared=true"), warning);
+ }
+
+ private static void assertNoWarning(String destination) {
+ // the consumer of the destination has started, so its WARN would
already be logged
+ List<String> warnings = CAPTOR.warningsAbout(destination);
+ assertTrue(warnings.isEmpty(), "Expected no WARN about " + destination
+ ", got: " + warnings);
+ }
+
+ private static final class JmsConsumerLogCaptor extends AbstractAppender {
+ private final List<LogEvent> events = new CopyOnWriteArrayList<>();
+
+ JmsConsumerLogCaptor() {
+ super("JmsTopicConcurrentConsumersTestCaptor", null, null, false,
Property.EMPTY_ARRAY);
+ start();
+ }
+
+ @Override
+ public void append(LogEvent event) {
+ events.add(event.toImmutable());
+ }
+
+ List<String> warningsAbout(String destination) {
+ // other test classes may log in parallel: keep the lines that
name the destination
+ return events.stream()
+ .filter(e -> e.getLevel().isMoreSpecificThan(Level.WARN))
+ .map(e -> e.getMessage().getFormattedMessage())
+ .filter(m -> m.contains(destination + " "))
+ .toList();
+ }
+ }
+}
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
index 4bc422778bd0..0b35a7033514 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
@@ -545,6 +545,14 @@ closed, so the body of an ActiveMQ Artemis large message
failed with `AMQ219023`
(such as an `ObjectMessage` while `objectMessageEnabled` is `false`) now fails
the receive itself, and the message is
rolled back with `transacted=true`, or recovered with `CLIENT_ACKNOWLEDGE`,
instead of committed or acknowledged.
+=== camel-jms - a topic consumer with several concurrent consumers and no
shared subscription logs a WARN
+
+A consumer on a topic with `concurrentConsumers` or `maxConcurrentConsumers`
greater than 1 and without
+`subscriptionShared=true` now logs a WARN when it starts. Each of its
consumers has its own subscription, so every
+message is processed once per consumer; this is unchanged. This also applies
when the option is set on the component
+and the route consumes from a topic, and to camel-activemq, camel-activemq6
and camel-amqp. To process each message
+once, set `subscriptionShared=true` with a `subscriptionName`, or use a single
consumer on the topic.
+
=== camel-sjms, camel-sjms2 - pollEnrich and ConsumerTemplate read the message
before they close the session
`pollEnrich` and a `ConsumerTemplate` on an `sjms` or `sjms2` endpoint now
read the body and the headers of the message
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Activemq6ComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Activemq6ComponentBuilderFactory.java
index e50a0391e044..293b228808a1 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Activemq6ComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Activemq6ComponentBuilderFactory.java
@@ -396,7 +396,9 @@ public interface Activemq6ComponentBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToConcurrentConsumers is used to control number of concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
@@ -417,7 +419,9 @@ public interface Activemq6ComponentBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToMaxConcurrentConsumers is used to control number of
concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ActivemqComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ActivemqComponentBuilderFactory.java
index 14bd259ca354..a3f79b497c78 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ActivemqComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ActivemqComponentBuilderFactory.java
@@ -396,7 +396,9 @@ public interface ActivemqComponentBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToConcurrentConsumers is used to control number of concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
@@ -417,7 +419,9 @@ public interface ActivemqComponentBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToMaxConcurrentConsumers is used to control number of
concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AmqpComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AmqpComponentBuilderFactory.java
index d6204c35d824..42f6f31c08c0 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AmqpComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AmqpComponentBuilderFactory.java
@@ -497,7 +497,9 @@ public interface AmqpComponentBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToConcurrentConsumers is used to control number of concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
@@ -518,7 +520,9 @@ public interface AmqpComponentBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToMaxConcurrentConsumers is used to control number of
concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JmsComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JmsComponentBuilderFactory.java
index a8a78dfba548..9863d3d4f27c 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JmsComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JmsComponentBuilderFactory.java
@@ -313,7 +313,9 @@ public interface JmsComponentBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToConcurrentConsumers is used to control number of concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
@@ -334,7 +336,9 @@ public interface JmsComponentBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToMaxConcurrentConsumers is used to control number of
concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AMQPEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AMQPEndpointBuilderFactory.java
index 4077ff067da2..2435c38e3c08 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AMQPEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AMQPEndpointBuilderFactory.java
@@ -440,7 +440,9 @@ public interface AMQPEndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToConcurrentConsumers is used to control number of concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
@@ -460,7 +462,9 @@ public interface AMQPEndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToConcurrentConsumers is used to control number of concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option will be converted to a <code>int</code> type.
*
@@ -480,7 +484,9 @@ public interface AMQPEndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToMaxConcurrentConsumers is used to control number of
concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
@@ -499,7 +505,9 @@ public interface AMQPEndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToMaxConcurrentConsumers is used to control number of
concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option will be converted to a <code>int</code> type.
*
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ActiveMQ6EndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ActiveMQ6EndpointBuilderFactory.java
index 10bac3d66a40..b84e59e65513 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ActiveMQ6EndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ActiveMQ6EndpointBuilderFactory.java
@@ -441,7 +441,9 @@ public interface ActiveMQ6EndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToConcurrentConsumers is used to control number of concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
@@ -461,7 +463,9 @@ public interface ActiveMQ6EndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToConcurrentConsumers is used to control number of concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option will be converted to a <code>int</code> type.
*
@@ -481,7 +485,9 @@ public interface ActiveMQ6EndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToMaxConcurrentConsumers is used to control number of
concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
@@ -500,7 +506,9 @@ public interface ActiveMQ6EndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToMaxConcurrentConsumers is used to control number of
concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option will be converted to a <code>int</code> type.
*
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ActiveMQEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ActiveMQEndpointBuilderFactory.java
index 2580de810e1f..2cdcb6af1845 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ActiveMQEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ActiveMQEndpointBuilderFactory.java
@@ -441,7 +441,9 @@ public interface ActiveMQEndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToConcurrentConsumers is used to control number of concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
@@ -461,7 +463,9 @@ public interface ActiveMQEndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToConcurrentConsumers is used to control number of concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option will be converted to a <code>int</code> type.
*
@@ -481,7 +485,9 @@ public interface ActiveMQEndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToMaxConcurrentConsumers is used to control number of
concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
@@ -500,7 +506,9 @@ public interface ActiveMQEndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToMaxConcurrentConsumers is used to control number of
concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option will be converted to a <code>int</code> type.
*
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JmsEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JmsEndpointBuilderFactory.java
index 001f0d3a3ced..a29e8453dc51 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JmsEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JmsEndpointBuilderFactory.java
@@ -440,7 +440,9 @@ public interface JmsEndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToConcurrentConsumers is used to control number of concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
@@ -460,7 +462,9 @@ public interface JmsEndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToConcurrentConsumers is used to control number of concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option will be converted to a <code>int</code> type.
*
@@ -480,7 +484,9 @@ public interface JmsEndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToMaxConcurrentConsumers is used to control number of
concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option is a: <code>int</code> type.
*
@@ -499,7 +505,9 @@ public interface JmsEndpointBuilderFactory {
* maxMessagesPerTask option to control dynamic scaling up/down of
* threads. When doing request/reply over JMS then the option
* replyToMaxConcurrentConsumers is used to control number of
concurrent
- * consumers on the reply message listener.
+ * consumers on the reply message listener. On a topic, each consumer
+ * has its own subscription and receives every message, unless
+ * subscriptionShared is enabled.
*
* The option will be converted to a <code>int</code> type.
*