This is an automated email from the ASF dual-hosted git repository.
gnodet 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 0f399311de66 CAMEL-26361: camel-azure-servicebus: expose
sessionIdleTimeout for session-enabled consumers with async routes (#31133)
0f399311de66 is described below
commit 0f399311de6601da67c68b2d613c335488f53c6c
Author: Guillaume Nodet <[email protected]>
AuthorDate: Tue Dec 1 08:26:04 2026 +0100
CAMEL-26361: camel-azure-servicebus: expose sessionIdleTimeout for
session-enabled consumers with async routes (#31133)
* CAMEL-26361: camel-azure-servicebus: expose sessionIdleTimeout for
session-enabled consumers with async routes
* Regen
* CAMEL-26361: address davsclaus review
- Fix sessionIdleTimeout guard: use > 0 instead of >= 0 to reject
Duration.ZERO which would close every session immediately on the SDK side
- Add zero-value test to ServiceBusClientFactorySessionIdleTimeoutTest
- Document sessionIdleTimeout in azure-servicebus-component.adoc with the
async-route use-case and the maxConcurrentSessions slot trade-off
- Remove sessionIdleTimeout from upgrade guide (new opt-in option, not a
migration item; explanation moved to component docs)
- Remove '(1 minute)' from @UriParam description (SDK-version-dependent)
- Flatten the if-nesting in ServiceBusConsumer.doStart back to the original
condition shape, keeping the session-lock-renewal comment
* CAMEL-26361: regenerate DSL with updated sessionIdleTimeout description
---
.../camel/catalog/components/azure-servicebus.json | 62 +++++------
.../catalog/docs/azure-servicebus-component.adoc | 19 ++++
.../servicebus/ServiceBusComponentConfigurer.java | 6 ++
.../servicebus/ServiceBusEndpointConfigurer.java | 6 ++
.../servicebus/ServiceBusEndpointUriFactory.java | 3 +-
.../azure/servicebus/azure-servicebus.json | 62 +++++------
.../src/main/docs/azure-servicebus-component.adoc | 19 ++++
.../azure/servicebus/ServiceBusConfiguration.java | 22 ++++
.../azure/servicebus/ServiceBusConsumer.java | 3 +
.../servicebus/client/ServiceBusClientFactory.java | 8 +-
.../azure/servicebus/ServiceBusEndpointTest.java | 32 ++++++
...viceBusClientFactorySessionIdleTimeoutTest.java | 116 +++++++++++++++++++++
.../AzureServicebusComponentBuilderFactory.java | 24 +++++
.../dsl/ServiceBusEndpointBuilderFactory.java | 42 ++++++++
14 files changed, 362 insertions(+), 62 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-servicebus.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-servicebus.json
index 4e059b04ad28..bc134c73c0c0 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-servicebus.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-servicebus.json
@@ -40,20 +40,21 @@
"processorClient": { "index": 13, "kind": "property", "displayName":
"Processor Client", "group": "consumer", "label": "consumer", "required":
false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusProcessorClient", "deprecated":
false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the processorClient
in order to consum [...]
"serviceBusReceiveMode": { "index": 14, "kind": "property", "displayName":
"Service Bus Receive Mode", "group": "consumer", "label": "consumer",
"required": false, "type": "enum", "javaType":
"com.azure.messaging.servicebus.models.ServiceBusReceiveMode", "enum": [
"PEEK_LOCK", "RECEIVE_AND_DELETE" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "PEEK_LOCK", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration", "confi
[...]
"sessionEnabled": { "index": 15, "kind": "property", "displayName":
"Session Enabled", "group": "consumer", "label": "consumer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Enable session support"
},
- "subQueue": { "index": 16, "kind": "property", "displayName": "Sub Queue",
"group": "consumer", "label": "consumer", "required": false, "type": "enum",
"javaType": "com.azure.messaging.servicebus.models.SubQueue", "enum": [ "NONE",
"DEAD_LETTER_QUEUE", "TRANSFER_DEAD_LETTER_QUEUE" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description" [...]
- "subscriptionName": { "index": 17, "kind": "property", "displayName":
"Subscription Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the name of the
subscription in the topic to listen to. topicOrQueueName an [...]
- "binary": { "index": 18, "kind": "property", "displayName": "Binary",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Set binary mode. If
true, message body will be sent as byte[]. By default, it is false." },
- "lazyStartProducer": { "index": 19, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fai [...]
- "producerOperation": { "index": 20, "kind": "property", "displayName":
"Producer Operation", "group": "producer", "label": "producer", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.azure.servicebus.ServiceBusProducerOperationDefinition",
"enum": [ "sendMessages", "scheduleMessages" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "sendMessages",
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfig [...]
- "scheduledEnqueueTime": { "index": 21, "kind": "property", "displayName":
"Scheduled Enqueue Time", "group": "producer", "label": "producer", "required":
false, "type": "object", "javaType": "java.time.OffsetDateTime", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets OffsetDateTime at
which the message should appear in the S [...]
- "senderClient": { "index": 22, "kind": "property", "displayName": "Sender
Client", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType": "com.azure.messaging.servicebus.ServiceBusSenderClient",
"deprecated": false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets senderClient to be
used in the producer." },
- "serviceBusTransactionContext": { "index": 23, "kind": "property",
"displayName": "Service Bus Transaction Context", "group": "producer", "label":
"producer", "required": false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusTransactionContext", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Represents [...]
- "sessionId": { "index": 24, "kind": "property", "displayName": "Session
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Session ID for
session-enabled queues or topics." },
- "autowiredEnabled": { "index": 25, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching [...]
- "connectionString": { "index": 26, "kind": "property", "displayName":
"Connection String", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the connection
string for a Service Bus namespace or a [...]
- "credentialType": { "index": 27, "kind": "property", "displayName":
"Credential Type", "group": "security", "label": "security", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.azure.common.CredentialType", "enum": [
"AZURE_IDENTITY", "CONNECTION_STRING", "TOKEN_CREDENTIAL" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue":
"CONNECTION_STRING", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfigurati [...]
- "fullyQualifiedNamespace": { "index": 28, "kind": "property",
"displayName": "Fully Qualified Namespace", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Fully Qualified
Namespace of the service bus" },
- "tokenCredential": { "index": 29, "kind": "property", "displayName":
"Token Credential", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"com.azure.core.credential.TokenCredential", "deprecated": false, "autowired":
true, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "The
com.azure.core.credential.TokenCr [...]
+ "sessionIdleTimeout": { "index": 16, "kind": "property", "displayName":
"Session Idle Timeout", "group": "consumer", "label": "consumer", "required":
false, "type": "duration", "javaType": "long", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "-1",
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the amount of time
(millis) to wait for the next message i [...]
+ "subQueue": { "index": 17, "kind": "property", "displayName": "Sub Queue",
"group": "consumer", "label": "consumer", "required": false, "type": "enum",
"javaType": "com.azure.messaging.servicebus.models.SubQueue", "enum": [ "NONE",
"DEAD_LETTER_QUEUE", "TRANSFER_DEAD_LETTER_QUEUE" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description" [...]
+ "subscriptionName": { "index": 18, "kind": "property", "displayName":
"Subscription Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the name of the
subscription in the topic to listen to. topicOrQueueName an [...]
+ "binary": { "index": 19, "kind": "property", "displayName": "Binary",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Set binary mode. If
true, message body will be sent as byte[]. By default, it is false." },
+ "lazyStartProducer": { "index": 20, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fai [...]
+ "producerOperation": { "index": 21, "kind": "property", "displayName":
"Producer Operation", "group": "producer", "label": "producer", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.azure.servicebus.ServiceBusProducerOperationDefinition",
"enum": [ "sendMessages", "scheduleMessages" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "sendMessages",
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfig [...]
+ "scheduledEnqueueTime": { "index": 22, "kind": "property", "displayName":
"Scheduled Enqueue Time", "group": "producer", "label": "producer", "required":
false, "type": "object", "javaType": "java.time.OffsetDateTime", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets OffsetDateTime at
which the message should appear in the S [...]
+ "senderClient": { "index": 23, "kind": "property", "displayName": "Sender
Client", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType": "com.azure.messaging.servicebus.ServiceBusSenderClient",
"deprecated": false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets senderClient to be
used in the producer." },
+ "serviceBusTransactionContext": { "index": 24, "kind": "property",
"displayName": "Service Bus Transaction Context", "group": "producer", "label":
"producer", "required": false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusTransactionContext", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Represents [...]
+ "sessionId": { "index": 25, "kind": "property", "displayName": "Session
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Session ID for
session-enabled queues or topics." },
+ "autowiredEnabled": { "index": 26, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching [...]
+ "connectionString": { "index": 27, "kind": "property", "displayName":
"Connection String", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the connection
string for a Service Bus namespace or a [...]
+ "credentialType": { "index": 28, "kind": "property", "displayName":
"Credential Type", "group": "security", "label": "security", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.azure.common.CredentialType", "enum": [
"AZURE_IDENTITY", "CONNECTION_STRING", "TOKEN_CREDENTIAL" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue":
"CONNECTION_STRING", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfigurati [...]
+ "fullyQualifiedNamespace": { "index": 29, "kind": "property",
"displayName": "Fully Qualified Namespace", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Fully Qualified
Namespace of the service bus" },
+ "tokenCredential": { "index": 30, "kind": "property", "displayName":
"Token Credential", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"com.azure.core.credential.TokenCredential", "deprecated": false, "autowired":
true, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "The
com.azure.core.credential.TokenCr [...]
},
"headers": {
"CamelAzureServiceBusApplicationProperties": { "index": 0, "kind":
"header", "displayName": "", "group": "common", "label": "common", "required":
false, "javaType": "Map<String, Object>", "deprecated": false, "autowired":
false, "secret": false, "description": "The application properties (also known
as custom properties) on messages sent and received by the producer and
consumer, respectively.", "constantName":
"org.apache.camel.component.azure.servicebus.ServiceBusConstants#APPLICAT [...]
@@ -104,22 +105,23 @@
"processorClient": { "index": 12, "kind": "parameter", "displayName":
"Processor Client", "group": "consumer", "label": "consumer", "required":
false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusProcessorClient", "deprecated":
false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the processorClient
in order to consu [...]
"serviceBusReceiveMode": { "index": 13, "kind": "parameter",
"displayName": "Service Bus Receive Mode", "group": "consumer", "label":
"consumer", "required": false, "type": "enum", "javaType":
"com.azure.messaging.servicebus.models.ServiceBusReceiveMode", "enum": [
"PEEK_LOCK", "RECEIVE_AND_DELETE" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "PEEK_LOCK", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration", "conf
[...]
"sessionEnabled": { "index": 14, "kind": "parameter", "displayName":
"Session Enabled", "group": "consumer", "label": "consumer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Enable session support"
},
- "subQueue": { "index": 15, "kind": "parameter", "displayName": "Sub
Queue", "group": "consumer", "label": "consumer", "required": false, "type":
"enum", "javaType": "com.azure.messaging.servicebus.models.SubQueue", "enum": [
"NONE", "DEAD_LETTER_QUEUE", "TRANSFER_DEAD_LETTER_QUEUE" ], "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description [...]
- "subscriptionName": { "index": 16, "kind": "parameter", "displayName":
"Subscription Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the name of the
subscription in the topic to listen to. topicOrQueueName a [...]
- "bridgeErrorHandler": { "index": 17, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
- "exceptionHandler": { "index": 18, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By de [...]
- "exchangePattern": { "index": 19, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
- "binary": { "index": 20, "kind": "parameter", "displayName": "Binary",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Set binary mode. If
true, message body will be sent as byte[]. By default, it is false." },
- "producerOperation": { "index": 21, "kind": "parameter", "displayName":
"Producer Operation", "group": "producer", "label": "producer", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.azure.servicebus.ServiceBusProducerOperationDefinition",
"enum": [ "sendMessages", "scheduleMessages" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "sendMessages",
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfi [...]
- "scheduledEnqueueTime": { "index": 22, "kind": "parameter", "displayName":
"Scheduled Enqueue Time", "group": "producer", "label": "producer", "required":
false, "type": "object", "javaType": "java.time.OffsetDateTime", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets OffsetDateTime at
which the message should appear in the [...]
- "senderClient": { "index": 23, "kind": "parameter", "displayName": "Sender
Client", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType": "com.azure.messaging.servicebus.ServiceBusSenderClient",
"deprecated": false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets senderClient to be
used in the producer." },
- "serviceBusTransactionContext": { "index": 24, "kind": "parameter",
"displayName": "Service Bus Transaction Context", "group": "producer", "label":
"producer", "required": false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusTransactionContext", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Represents [...]
- "sessionId": { "index": 25, "kind": "parameter", "displayName": "Session
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Session ID for
session-enabled queues or topics." },
- "lazyStartProducer": { "index": 26, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
- "connectionString": { "index": 27, "kind": "parameter", "displayName":
"Connection String", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the connection
string for a Service Bus namespace or [...]
- "credentialType": { "index": 28, "kind": "parameter", "displayName":
"Credential Type", "group": "security", "label": "security", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.azure.common.CredentialType", "enum": [
"AZURE_IDENTITY", "CONNECTION_STRING", "TOKEN_CREDENTIAL" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue":
"CONNECTION_STRING", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfigurat [...]
- "fullyQualifiedNamespace": { "index": 29, "kind": "parameter",
"displayName": "Fully Qualified Namespace", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Fully Qualified
Namespace of the service bus" },
- "tokenCredential": { "index": 30, "kind": "parameter", "displayName":
"Token Credential", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"com.azure.core.credential.TokenCredential", "deprecated": false, "autowired":
true, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "The
com.azure.core.credential.TokenC [...]
+ "sessionIdleTimeout": { "index": 15, "kind": "parameter", "displayName":
"Session Idle Timeout", "group": "consumer", "label": "consumer", "required":
false, "type": "duration", "javaType": "long", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "-1",
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the amount of time
(millis) to wait for the next message [...]
+ "subQueue": { "index": 16, "kind": "parameter", "displayName": "Sub
Queue", "group": "consumer", "label": "consumer", "required": false, "type":
"enum", "javaType": "com.azure.messaging.servicebus.models.SubQueue", "enum": [
"NONE", "DEAD_LETTER_QUEUE", "TRANSFER_DEAD_LETTER_QUEUE" ], "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description [...]
+ "subscriptionName": { "index": 17, "kind": "parameter", "displayName":
"Subscription Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the name of the
subscription in the topic to listen to. topicOrQueueName a [...]
+ "bridgeErrorHandler": { "index": 18, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
+ "exceptionHandler": { "index": 19, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By de [...]
+ "exchangePattern": { "index": 20, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
+ "binary": { "index": 21, "kind": "parameter", "displayName": "Binary",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Set binary mode. If
true, message body will be sent as byte[]. By default, it is false." },
+ "producerOperation": { "index": 22, "kind": "parameter", "displayName":
"Producer Operation", "group": "producer", "label": "producer", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.azure.servicebus.ServiceBusProducerOperationDefinition",
"enum": [ "sendMessages", "scheduleMessages" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "sendMessages",
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfi [...]
+ "scheduledEnqueueTime": { "index": 23, "kind": "parameter", "displayName":
"Scheduled Enqueue Time", "group": "producer", "label": "producer", "required":
false, "type": "object", "javaType": "java.time.OffsetDateTime", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets OffsetDateTime at
which the message should appear in the [...]
+ "senderClient": { "index": 24, "kind": "parameter", "displayName": "Sender
Client", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType": "com.azure.messaging.servicebus.ServiceBusSenderClient",
"deprecated": false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets senderClient to be
used in the producer." },
+ "serviceBusTransactionContext": { "index": 25, "kind": "parameter",
"displayName": "Service Bus Transaction Context", "group": "producer", "label":
"producer", "required": false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusTransactionContext", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Represents [...]
+ "sessionId": { "index": 26, "kind": "parameter", "displayName": "Session
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Session ID for
session-enabled queues or topics." },
+ "lazyStartProducer": { "index": 27, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
+ "connectionString": { "index": 28, "kind": "parameter", "displayName":
"Connection String", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the connection
string for a Service Bus namespace or [...]
+ "credentialType": { "index": 29, "kind": "parameter", "displayName":
"Credential Type", "group": "security", "label": "security", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.azure.common.CredentialType", "enum": [
"AZURE_IDENTITY", "CONNECTION_STRING", "TOKEN_CREDENTIAL" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue":
"CONNECTION_STRING", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfigurat [...]
+ "fullyQualifiedNamespace": { "index": 30, "kind": "parameter",
"displayName": "Fully Qualified Namespace", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Fully Qualified
Namespace of the service bus" },
+ "tokenCredential": { "index": 31, "kind": "parameter", "displayName":
"Token Credential", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"com.azure.core.credential.TokenCredential", "deprecated": false, "autowired":
true, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "The
com.azure.core.credential.TokenC [...]
},
"dstWorlds": {
"ServiceBusWorld": { "javaType":
"org.apache.camel.component.azure.servicebus.dst.ServiceBusWorld", "fake":
"FakeServiceBus: a queue in peek-lock mode (lock duration, delivery count,
dead-letter queue) behind the processor and receiver clients of
ServiceBusClientFactory", "covers": [ "the lock renewer of the consumer
(PEEK_LOCK, maxAutoLockRenewDuration) with an asynchronous route", "processing
that takes longer than the lock duration", "complete, abandon and dead-letter,
also after [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-servicebus-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-servicebus-component.adoc
index 3daae73b5374..e9fd7f1a62e5 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-servicebus-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-servicebus-component.adoc
@@ -250,3 +250,22 @@ YAML::
----
====
+=== Session idle timeout for async routes
+
+When `sessionEnabled=true` and routes process messages asynchronously (the
`processMessage` callback returns before the
+exchange is settled), the session processor's idle timer may expire before the
async route finishes, causing the session
+to close and the message to be redelivered.
+
+Use `sessionIdleTimeout` to extend the session idle window to cover the
slowest expected processing time:
+
+[source,java]
+----
+from("azure-servicebus:test//?connectionString=test&sessionEnabled=true&sessionIdleTimeout=120000")
+ .log("${body}")
+ .to("mock:result");
+----
+
+A longer timeout keeps an idle session — one of the `maxConcurrentSessions`
slots — occupied until the timer fires, so
+choose the smallest value that covers the longest expected processing time.
+
+
diff --git
a/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusComponentConfigurer.java
b/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusComponentConfigurer.java
index 4c37840c1e48..05fa37865c5e 100644
---
a/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusComponentConfigurer.java
+++
b/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusComponentConfigurer.java
@@ -83,6 +83,8 @@ public class ServiceBusComponentConfigurer extends
PropertyConfigurerSupport imp
case "sessionEnabled":
getOrCreateConfiguration(target).setSessionEnabled(property(camelContext,
boolean.class, value)); return true;
case "sessionid":
case "sessionId":
getOrCreateConfiguration(target).setSessionId(property(camelContext,
java.lang.String.class, value)); return true;
+ case "sessionidletimeout":
+ case "sessionIdleTimeout":
getOrCreateConfiguration(target).setSessionIdleTimeout(property(camelContext,
java.time.Duration.class, value).toMillis()); return true;
case "subqueue":
case "subQueue":
getOrCreateConfiguration(target).setSubQueue(property(camelContext,
com.azure.messaging.servicebus.models.SubQueue.class, value)); return true;
case "subscriptionname":
@@ -153,6 +155,8 @@ public class ServiceBusComponentConfigurer extends
PropertyConfigurerSupport imp
case "sessionEnabled": return boolean.class;
case "sessionid":
case "sessionId": return java.lang.String.class;
+ case "sessionidletimeout":
+ case "sessionIdleTimeout": return long.class;
case "subqueue":
case "subQueue": return
com.azure.messaging.servicebus.models.SubQueue.class;
case "subscriptionname":
@@ -219,6 +223,8 @@ public class ServiceBusComponentConfigurer extends
PropertyConfigurerSupport imp
case "sessionEnabled": return
getOrCreateConfiguration(target).isSessionEnabled();
case "sessionid":
case "sessionId": return
getOrCreateConfiguration(target).getSessionId();
+ case "sessionidletimeout":
+ case "sessionIdleTimeout": return
getOrCreateConfiguration(target).getSessionIdleTimeout();
case "subqueue":
case "subQueue": return getOrCreateConfiguration(target).getSubQueue();
case "subscriptionname":
diff --git
a/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointConfigurer.java
b/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointConfigurer.java
index 5dac5676c835..aa7a3e666713 100644
---
a/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointConfigurer.java
+++
b/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointConfigurer.java
@@ -77,6 +77,8 @@ public class ServiceBusEndpointConfigurer extends
PropertyConfigurerSupport impl
case "sessionEnabled":
target.getConfiguration().setSessionEnabled(property(camelContext,
boolean.class, value)); return true;
case "sessionid":
case "sessionId":
target.getConfiguration().setSessionId(property(camelContext,
java.lang.String.class, value)); return true;
+ case "sessionidletimeout":
+ case "sessionIdleTimeout":
target.getConfiguration().setSessionIdleTimeout(property(camelContext,
java.time.Duration.class, value).toMillis()); return true;
case "subqueue":
case "subQueue":
target.getConfiguration().setSubQueue(property(camelContext,
com.azure.messaging.servicebus.models.SubQueue.class, value)); return true;
case "subscriptionname":
@@ -148,6 +150,8 @@ public class ServiceBusEndpointConfigurer extends
PropertyConfigurerSupport impl
case "sessionEnabled": return boolean.class;
case "sessionid":
case "sessionId": return java.lang.String.class;
+ case "sessionidletimeout":
+ case "sessionIdleTimeout": return long.class;
case "subqueue":
case "subQueue": return
com.azure.messaging.servicebus.models.SubQueue.class;
case "subscriptionname":
@@ -215,6 +219,8 @@ public class ServiceBusEndpointConfigurer extends
PropertyConfigurerSupport impl
case "sessionEnabled": return
target.getConfiguration().isSessionEnabled();
case "sessionid":
case "sessionId": return target.getConfiguration().getSessionId();
+ case "sessionidletimeout":
+ case "sessionIdleTimeout": return
target.getConfiguration().getSessionIdleTimeout();
case "subqueue":
case "subQueue": return target.getConfiguration().getSubQueue();
case "subscriptionname":
diff --git
a/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointUriFactory.java
b/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointUriFactory.java
index de9855b75b5e..289de52397ec 100644
---
a/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointUriFactory.java
+++
b/components/camel-azure/camel-azure-servicebus/src/generated/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointUriFactory.java
@@ -24,7 +24,7 @@ public class ServiceBusEndpointUriFactory extends
org.apache.camel.support.compo
private static final Set<String> ENDPOINT_IDENTITY_PROPERTY_NAMES;
private static final Map<String, String> MULTI_VALUE_PREFIXES;
static {
- Set<String> props = new HashSet<>(31);
+ Set<String> props = new HashSet<>(32);
props.add("amqpRetryOptions");
props.add("amqpTransportType");
props.add("binary");
@@ -52,6 +52,7 @@ public class ServiceBusEndpointUriFactory extends
org.apache.camel.support.compo
props.add("serviceBusType");
props.add("sessionEnabled");
props.add("sessionId");
+ props.add("sessionIdleTimeout");
props.add("subQueue");
props.add("subscriptionName");
props.add("tokenCredential");
diff --git
a/components/camel-azure/camel-azure-servicebus/src/generated/resources/META-INF/org/apache/camel/component/azure/servicebus/azure-servicebus.json
b/components/camel-azure/camel-azure-servicebus/src/generated/resources/META-INF/org/apache/camel/component/azure/servicebus/azure-servicebus.json
index 4e059b04ad28..bc134c73c0c0 100644
---
a/components/camel-azure/camel-azure-servicebus/src/generated/resources/META-INF/org/apache/camel/component/azure/servicebus/azure-servicebus.json
+++
b/components/camel-azure/camel-azure-servicebus/src/generated/resources/META-INF/org/apache/camel/component/azure/servicebus/azure-servicebus.json
@@ -40,20 +40,21 @@
"processorClient": { "index": 13, "kind": "property", "displayName":
"Processor Client", "group": "consumer", "label": "consumer", "required":
false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusProcessorClient", "deprecated":
false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the processorClient
in order to consum [...]
"serviceBusReceiveMode": { "index": 14, "kind": "property", "displayName":
"Service Bus Receive Mode", "group": "consumer", "label": "consumer",
"required": false, "type": "enum", "javaType":
"com.azure.messaging.servicebus.models.ServiceBusReceiveMode", "enum": [
"PEEK_LOCK", "RECEIVE_AND_DELETE" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "PEEK_LOCK", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration", "confi
[...]
"sessionEnabled": { "index": 15, "kind": "property", "displayName":
"Session Enabled", "group": "consumer", "label": "consumer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Enable session support"
},
- "subQueue": { "index": 16, "kind": "property", "displayName": "Sub Queue",
"group": "consumer", "label": "consumer", "required": false, "type": "enum",
"javaType": "com.azure.messaging.servicebus.models.SubQueue", "enum": [ "NONE",
"DEAD_LETTER_QUEUE", "TRANSFER_DEAD_LETTER_QUEUE" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description" [...]
- "subscriptionName": { "index": 17, "kind": "property", "displayName":
"Subscription Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the name of the
subscription in the topic to listen to. topicOrQueueName an [...]
- "binary": { "index": 18, "kind": "property", "displayName": "Binary",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Set binary mode. If
true, message body will be sent as byte[]. By default, it is false." },
- "lazyStartProducer": { "index": 19, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fai [...]
- "producerOperation": { "index": 20, "kind": "property", "displayName":
"Producer Operation", "group": "producer", "label": "producer", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.azure.servicebus.ServiceBusProducerOperationDefinition",
"enum": [ "sendMessages", "scheduleMessages" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "sendMessages",
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfig [...]
- "scheduledEnqueueTime": { "index": 21, "kind": "property", "displayName":
"Scheduled Enqueue Time", "group": "producer", "label": "producer", "required":
false, "type": "object", "javaType": "java.time.OffsetDateTime", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets OffsetDateTime at
which the message should appear in the S [...]
- "senderClient": { "index": 22, "kind": "property", "displayName": "Sender
Client", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType": "com.azure.messaging.servicebus.ServiceBusSenderClient",
"deprecated": false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets senderClient to be
used in the producer." },
- "serviceBusTransactionContext": { "index": 23, "kind": "property",
"displayName": "Service Bus Transaction Context", "group": "producer", "label":
"producer", "required": false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusTransactionContext", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Represents [...]
- "sessionId": { "index": 24, "kind": "property", "displayName": "Session
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Session ID for
session-enabled queues or topics." },
- "autowiredEnabled": { "index": 25, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching [...]
- "connectionString": { "index": 26, "kind": "property", "displayName":
"Connection String", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the connection
string for a Service Bus namespace or a [...]
- "credentialType": { "index": 27, "kind": "property", "displayName":
"Credential Type", "group": "security", "label": "security", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.azure.common.CredentialType", "enum": [
"AZURE_IDENTITY", "CONNECTION_STRING", "TOKEN_CREDENTIAL" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue":
"CONNECTION_STRING", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfigurati [...]
- "fullyQualifiedNamespace": { "index": 28, "kind": "property",
"displayName": "Fully Qualified Namespace", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Fully Qualified
Namespace of the service bus" },
- "tokenCredential": { "index": 29, "kind": "property", "displayName":
"Token Credential", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"com.azure.core.credential.TokenCredential", "deprecated": false, "autowired":
true, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "The
com.azure.core.credential.TokenCr [...]
+ "sessionIdleTimeout": { "index": 16, "kind": "property", "displayName":
"Session Idle Timeout", "group": "consumer", "label": "consumer", "required":
false, "type": "duration", "javaType": "long", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "-1",
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the amount of time
(millis) to wait for the next message i [...]
+ "subQueue": { "index": 17, "kind": "property", "displayName": "Sub Queue",
"group": "consumer", "label": "consumer", "required": false, "type": "enum",
"javaType": "com.azure.messaging.servicebus.models.SubQueue", "enum": [ "NONE",
"DEAD_LETTER_QUEUE", "TRANSFER_DEAD_LETTER_QUEUE" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description" [...]
+ "subscriptionName": { "index": 18, "kind": "property", "displayName":
"Subscription Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the name of the
subscription in the topic to listen to. topicOrQueueName an [...]
+ "binary": { "index": 19, "kind": "property", "displayName": "Binary",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Set binary mode. If
true, message body will be sent as byte[]. By default, it is false." },
+ "lazyStartProducer": { "index": 20, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fai [...]
+ "producerOperation": { "index": 21, "kind": "property", "displayName":
"Producer Operation", "group": "producer", "label": "producer", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.azure.servicebus.ServiceBusProducerOperationDefinition",
"enum": [ "sendMessages", "scheduleMessages" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "sendMessages",
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfig [...]
+ "scheduledEnqueueTime": { "index": 22, "kind": "property", "displayName":
"Scheduled Enqueue Time", "group": "producer", "label": "producer", "required":
false, "type": "object", "javaType": "java.time.OffsetDateTime", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets OffsetDateTime at
which the message should appear in the S [...]
+ "senderClient": { "index": 23, "kind": "property", "displayName": "Sender
Client", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType": "com.azure.messaging.servicebus.ServiceBusSenderClient",
"deprecated": false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets senderClient to be
used in the producer." },
+ "serviceBusTransactionContext": { "index": 24, "kind": "property",
"displayName": "Service Bus Transaction Context", "group": "producer", "label":
"producer", "required": false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusTransactionContext", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Represents [...]
+ "sessionId": { "index": 25, "kind": "property", "displayName": "Session
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Session ID for
session-enabled queues or topics." },
+ "autowiredEnabled": { "index": 26, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching [...]
+ "connectionString": { "index": 27, "kind": "property", "displayName":
"Connection String", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the connection
string for a Service Bus namespace or a [...]
+ "credentialType": { "index": 28, "kind": "property", "displayName":
"Credential Type", "group": "security", "label": "security", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.azure.common.CredentialType", "enum": [
"AZURE_IDENTITY", "CONNECTION_STRING", "TOKEN_CREDENTIAL" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue":
"CONNECTION_STRING", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfigurati [...]
+ "fullyQualifiedNamespace": { "index": 29, "kind": "property",
"displayName": "Fully Qualified Namespace", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Fully Qualified
Namespace of the service bus" },
+ "tokenCredential": { "index": 30, "kind": "property", "displayName":
"Token Credential", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"com.azure.core.credential.TokenCredential", "deprecated": false, "autowired":
true, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "The
com.azure.core.credential.TokenCr [...]
},
"headers": {
"CamelAzureServiceBusApplicationProperties": { "index": 0, "kind":
"header", "displayName": "", "group": "common", "label": "common", "required":
false, "javaType": "Map<String, Object>", "deprecated": false, "autowired":
false, "secret": false, "description": "The application properties (also known
as custom properties) on messages sent and received by the producer and
consumer, respectively.", "constantName":
"org.apache.camel.component.azure.servicebus.ServiceBusConstants#APPLICAT [...]
@@ -104,22 +105,23 @@
"processorClient": { "index": 12, "kind": "parameter", "displayName":
"Processor Client", "group": "consumer", "label": "consumer", "required":
false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusProcessorClient", "deprecated":
false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the processorClient
in order to consu [...]
"serviceBusReceiveMode": { "index": 13, "kind": "parameter",
"displayName": "Service Bus Receive Mode", "group": "consumer", "label":
"consumer", "required": false, "type": "enum", "javaType":
"com.azure.messaging.servicebus.models.ServiceBusReceiveMode", "enum": [
"PEEK_LOCK", "RECEIVE_AND_DELETE" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "PEEK_LOCK", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration", "conf
[...]
"sessionEnabled": { "index": 14, "kind": "parameter", "displayName":
"Session Enabled", "group": "consumer", "label": "consumer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Enable session support"
},
- "subQueue": { "index": 15, "kind": "parameter", "displayName": "Sub
Queue", "group": "consumer", "label": "consumer", "required": false, "type":
"enum", "javaType": "com.azure.messaging.servicebus.models.SubQueue", "enum": [
"NONE", "DEAD_LETTER_QUEUE", "TRANSFER_DEAD_LETTER_QUEUE" ], "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description [...]
- "subscriptionName": { "index": 16, "kind": "parameter", "displayName":
"Subscription Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the name of the
subscription in the topic to listen to. topicOrQueueName a [...]
- "bridgeErrorHandler": { "index": 17, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
- "exceptionHandler": { "index": 18, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By de [...]
- "exchangePattern": { "index": 19, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
- "binary": { "index": 20, "kind": "parameter", "displayName": "Binary",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Set binary mode. If
true, message body will be sent as byte[]. By default, it is false." },
- "producerOperation": { "index": 21, "kind": "parameter", "displayName":
"Producer Operation", "group": "producer", "label": "producer", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.azure.servicebus.ServiceBusProducerOperationDefinition",
"enum": [ "sendMessages", "scheduleMessages" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "sendMessages",
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfi [...]
- "scheduledEnqueueTime": { "index": 22, "kind": "parameter", "displayName":
"Scheduled Enqueue Time", "group": "producer", "label": "producer", "required":
false, "type": "object", "javaType": "java.time.OffsetDateTime", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets OffsetDateTime at
which the message should appear in the [...]
- "senderClient": { "index": 23, "kind": "parameter", "displayName": "Sender
Client", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType": "com.azure.messaging.servicebus.ServiceBusSenderClient",
"deprecated": false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets senderClient to be
used in the producer." },
- "serviceBusTransactionContext": { "index": 24, "kind": "parameter",
"displayName": "Service Bus Transaction Context", "group": "producer", "label":
"producer", "required": false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusTransactionContext", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Represents [...]
- "sessionId": { "index": 25, "kind": "parameter", "displayName": "Session
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Session ID for
session-enabled queues or topics." },
- "lazyStartProducer": { "index": 26, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
- "connectionString": { "index": 27, "kind": "parameter", "displayName":
"Connection String", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the connection
string for a Service Bus namespace or [...]
- "credentialType": { "index": 28, "kind": "parameter", "displayName":
"Credential Type", "group": "security", "label": "security", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.azure.common.CredentialType", "enum": [
"AZURE_IDENTITY", "CONNECTION_STRING", "TOKEN_CREDENTIAL" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue":
"CONNECTION_STRING", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfigurat [...]
- "fullyQualifiedNamespace": { "index": 29, "kind": "parameter",
"displayName": "Fully Qualified Namespace", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Fully Qualified
Namespace of the service bus" },
- "tokenCredential": { "index": 30, "kind": "parameter", "displayName":
"Token Credential", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"com.azure.core.credential.TokenCredential", "deprecated": false, "autowired":
true, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "The
com.azure.core.credential.TokenC [...]
+ "sessionIdleTimeout": { "index": 15, "kind": "parameter", "displayName":
"Session Idle Timeout", "group": "consumer", "label": "consumer", "required":
false, "type": "duration", "javaType": "long", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "-1",
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the amount of time
(millis) to wait for the next message [...]
+ "subQueue": { "index": 16, "kind": "parameter", "displayName": "Sub
Queue", "group": "consumer", "label": "consumer", "required": false, "type":
"enum", "javaType": "com.azure.messaging.servicebus.models.SubQueue", "enum": [
"NONE", "DEAD_LETTER_QUEUE", "TRANSFER_DEAD_LETTER_QUEUE" ], "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description [...]
+ "subscriptionName": { "index": 17, "kind": "parameter", "displayName":
"Subscription Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the name of the
subscription in the topic to listen to. topicOrQueueName a [...]
+ "bridgeErrorHandler": { "index": 18, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
+ "exceptionHandler": { "index": 19, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By de [...]
+ "exchangePattern": { "index": 20, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
+ "binary": { "index": 21, "kind": "parameter", "displayName": "Binary",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Set binary mode. If
true, message body will be sent as byte[]. By default, it is false." },
+ "producerOperation": { "index": 22, "kind": "parameter", "displayName":
"Producer Operation", "group": "producer", "label": "producer", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.azure.servicebus.ServiceBusProducerOperationDefinition",
"enum": [ "sendMessages", "scheduleMessages" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "sendMessages",
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfi [...]
+ "scheduledEnqueueTime": { "index": 23, "kind": "parameter", "displayName":
"Scheduled Enqueue Time", "group": "producer", "label": "producer", "required":
false, "type": "object", "javaType": "java.time.OffsetDateTime", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets OffsetDateTime at
which the message should appear in the [...]
+ "senderClient": { "index": 24, "kind": "parameter", "displayName": "Sender
Client", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType": "com.azure.messaging.servicebus.ServiceBusSenderClient",
"deprecated": false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets senderClient to be
used in the producer." },
+ "serviceBusTransactionContext": { "index": 25, "kind": "parameter",
"displayName": "Service Bus Transaction Context", "group": "producer", "label":
"producer", "required": false, "type": "object", "javaType":
"com.azure.messaging.servicebus.ServiceBusTransactionContext", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Represents [...]
+ "sessionId": { "index": 26, "kind": "parameter", "displayName": "Session
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Session ID for
session-enabled queues or topics." },
+ "lazyStartProducer": { "index": 27, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
+ "connectionString": { "index": 28, "kind": "parameter", "displayName":
"Connection String", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Sets the connection
string for a Service Bus namespace or [...]
+ "credentialType": { "index": 29, "kind": "parameter", "displayName":
"Credential Type", "group": "security", "label": "security", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.azure.common.CredentialType", "enum": [
"AZURE_IDENTITY", "CONNECTION_STRING", "TOKEN_CREDENTIAL" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue":
"CONNECTION_STRING", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfigurat [...]
+ "fullyQualifiedNamespace": { "index": 30, "kind": "parameter",
"displayName": "Fully Qualified Namespace", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "Fully Qualified
Namespace of the service bus" },
+ "tokenCredential": { "index": 31, "kind": "parameter", "displayName":
"Token Credential", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"com.azure.core.credential.TokenCredential", "deprecated": false, "autowired":
true, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.azure.servicebus.ServiceBusConfiguration",
"configurationField": "configuration", "description": "The
com.azure.core.credential.TokenC [...]
},
"dstWorlds": {
"ServiceBusWorld": { "javaType":
"org.apache.camel.component.azure.servicebus.dst.ServiceBusWorld", "fake":
"FakeServiceBus: a queue in peek-lock mode (lock duration, delivery count,
dead-letter queue) behind the processor and receiver clients of
ServiceBusClientFactory", "covers": [ "the lock renewer of the consumer
(PEEK_LOCK, maxAutoLockRenewDuration) with an asynchronous route", "processing
that takes longer than the lock duration", "complete, abandon and dead-letter,
also after [...]
diff --git
a/components/camel-azure/camel-azure-servicebus/src/main/docs/azure-servicebus-component.adoc
b/components/camel-azure/camel-azure-servicebus/src/main/docs/azure-servicebus-component.adoc
index 3daae73b5374..e9fd7f1a62e5 100644
---
a/components/camel-azure/camel-azure-servicebus/src/main/docs/azure-servicebus-component.adoc
+++
b/components/camel-azure/camel-azure-servicebus/src/main/docs/azure-servicebus-component.adoc
@@ -250,3 +250,22 @@ YAML::
----
====
+=== Session idle timeout for async routes
+
+When `sessionEnabled=true` and routes process messages asynchronously (the
`processMessage` callback returns before the
+exchange is settled), the session processor's idle timer may expire before the
async route finishes, causing the session
+to close and the message to be redelivered.
+
+Use `sessionIdleTimeout` to extend the session idle window to cover the
slowest expected processing time:
+
+[source,java]
+----
+from("azure-servicebus:test//?connectionString=test&sessionEnabled=true&sessionIdleTimeout=120000")
+ .log("${body}")
+ .to("mock:result");
+----
+
+A longer timeout keeps an idle session — one of the `maxConcurrentSessions`
slots — occupied until the timer fires, so
+choose the smallest value that covers the longest expected processing time.
+
+
diff --git
a/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/ServiceBusConfiguration.java
b/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/ServiceBusConfiguration.java
index 80ffb3044724..3e8823383623 100644
---
a/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/ServiceBusConfiguration.java
+++
b/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/ServiceBusConfiguration.java
@@ -97,6 +97,15 @@ public class ServiceBusConfiguration implements Cloneable,
HeaderFilterStrategyA
@UriParam(label = "consumer", defaultValue = "1",
description = "Sets the maximum number of concurrent sessions to
process at any given time. Only applies when sessionEnabled is true.")
private int maxConcurrentSessions = 1;
+ @UriParam(label = "consumer", javaType = "java.time.Duration",
defaultValue = "-1",
+ description = "Sets the amount of time (millis) to wait for the
next message in a session-enabled consumer "
+ + "before closing the session and trying to
acquire a new session. "
+ + "Applies only when sessionEnabled=true. "
+ + "Use a value large enough to cover the slowest
async route processing time. "
+ + "A larger value keeps an idle session — one of
the maxConcurrentSessions slots — busy for that long "
+ + "before the processor moves on to another
session. "
+ + "Set to -1 (default) to use the SDK default.")
+ private long sessionIdleTimeout = -1L;
/**
* Flag to enable sessions. Default is false. Used to create processor
client for message consumer
@@ -121,6 +130,19 @@ public class ServiceBusConfiguration implements Cloneable,
HeaderFilterStrategyA
this.maxConcurrentSessions = maxConcurrentSessions;
}
+ /**
+ * Sets the amount of time (millis) to wait for the next message in a
session consumer before closing that session
+ * and rotating to a new one. Use a value large enough to cover the
slowest async route processing time when
+ * sessionEnabled=true. Setting to -1 (default) uses the SDK default. Only
applies when sessionEnabled=true.
+ */
+ public long getSessionIdleTimeout() {
+ return sessionIdleTimeout;
+ }
+
+ public void setSessionIdleTimeout(long sessionIdleTimeout) {
+ this.sessionIdleTimeout = sessionIdleTimeout;
+ }
+
/**
* SessionId for the message. To set this field, sessionEnabled should be
set to true.
*/
diff --git
a/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/ServiceBusConsumer.java
b/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/ServiceBusConsumer.java
index 252da4474de0..8a19aadf9fe0 100644
---
a/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/ServiceBusConsumer.java
+++
b/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/ServiceBusConsumer.java
@@ -134,6 +134,9 @@ public class ServiceBusConsumer extends DefaultConsumer
implements ShutdownAware
// which returns immediately for async routes, making
maxAutoLockRenewDuration ineffective.
// Set up before the client starts, so a message it delivers right
away is tracked too; if the start fails,
// BaseService.start calls doStop, which shuts it down
+ // session-enabled consumers rely on the SDK's built-in session lock
renewal (beginLockRenew) and
+ // sessionIdleTimeout; Camel-side renewal via a second acceptSession()
receiver is not possible
+ // because the session processor already holds the exclusive session
lock
if (getConfiguration().getProcessorClient() == null
&& getConfiguration().getServiceBusReceiveMode() ==
ServiceBusReceiveMode.PEEK_LOCK
&& getConfiguration().getMaxAutoLockRenewDuration() > 0
diff --git
a/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/client/ServiceBusClientFactory.java
b/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/client/ServiceBusClientFactory.java
index f86da90a30f0..7a2c16dd85c6 100644
---
a/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/client/ServiceBusClientFactory.java
+++
b/components/camel-azure/camel-azure-servicebus/src/main/java/org/apache/camel/component/azure/servicebus/client/ServiceBusClientFactory.java
@@ -165,7 +165,13 @@ public final class ServiceBusClientFactory {
.prefetchCount(configuration.getPrefetchCount())
.subQueue(configuration.getSubQueue())
.maxConcurrentCalls(configuration.getMaxConcurrentCalls())
-
.maxConcurrentSessions(configuration.getMaxConcurrentSessions())
+
.maxConcurrentSessions(configuration.getMaxConcurrentSessions());
+
+ if (configuration.getSessionIdleTimeout() > 0) {
+
clientBuilder.sessionIdleTimeout(Duration.ofMillis(configuration.getSessionIdleTimeout()));
+ }
+
+ clientBuilder
.processMessage(processMessage)
.processError(processError);
diff --git
a/components/camel-azure/camel-azure-servicebus/src/test/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointTest.java
b/components/camel-azure/camel-azure-servicebus/src/test/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointTest.java
index 9b2f5abf7bc1..78c2ec8ef69b 100644
---
a/components/camel-azure/camel-azure-servicebus/src/test/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointTest.java
+++
b/components/camel-azure/camel-azure-servicebus/src/test/java/org/apache/camel/component/azure/servicebus/ServiceBusEndpointTest.java
@@ -241,6 +241,38 @@ class ServiceBusEndpointTest extends CamelTestSupport {
senderClient.close();
}
+ @Test
+ void testSessionIdleTimeoutDefaultIsMinusOne() throws Exception {
+ final String uri = "azure-servicebus://testTopicOrQueue";
+ final String remaining = "testTopicOrQueue";
+ final Map<String, Object> params = new HashMap<>();
+ params.put("connectionString", "testString");
+ params.put("sessionEnabled", "true");
+
+ final ServiceBusEndpoint endpoint
+ = (ServiceBusEndpoint)
context.getComponent("azure-servicebus", ServiceBusComponent.class)
+ .createEndpoint(uri, remaining, params);
+
+ assertEquals(-1L, endpoint.getConfiguration().getSessionIdleTimeout());
+ }
+
+ @Test
+ void testSessionIdleTimeoutFromUri() throws Exception {
+ final String uri = "azure-servicebus://testTopicOrQueue";
+ final String remaining = "testTopicOrQueue";
+ final Map<String, Object> params = new HashMap<>();
+ params.put("connectionString", "testString");
+ params.put("sessionEnabled", "true");
+ params.put("sessionIdleTimeout", "300000");
+
+ final ServiceBusEndpoint endpoint
+ = (ServiceBusEndpoint)
context.getComponent("azure-servicebus", ServiceBusComponent.class)
+ .createEndpoint(uri, remaining, params);
+
+ assertTrue(endpoint.getConfiguration().isSessionEnabled());
+ assertEquals(300_000L,
endpoint.getConfiguration().getSessionIdleTimeout());
+ }
+
@Test
void testScheduledEnqueueTimeInUri() {
final OffsetDateTime expected = OffsetDateTime.of(2026, 11, 18, 23, 0,
0, 0, ZoneOffset.ofHours(1));
diff --git
a/components/camel-azure/camel-azure-servicebus/src/test/java/org/apache/camel/component/azure/servicebus/client/ServiceBusClientFactorySessionIdleTimeoutTest.java
b/components/camel-azure/camel-azure-servicebus/src/test/java/org/apache/camel/component/azure/servicebus/client/ServiceBusClientFactorySessionIdleTimeoutTest.java
new file mode 100644
index 000000000000..d4769cb00e0d
--- /dev/null
+++
b/components/camel-azure/camel-azure-servicebus/src/test/java/org/apache/camel/component/azure/servicebus/client/ServiceBusClientFactorySessionIdleTimeoutTest.java
@@ -0,0 +1,116 @@
+/*
+ * 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.azure.servicebus.client;
+
+import java.time.Duration;
+
+import com.azure.messaging.servicebus.ServiceBusClientBuilder;
+import com.azure.messaging.servicebus.ServiceBusProcessorClient;
+import org.apache.camel.component.azure.servicebus.ServiceBusConfiguration;
+import org.junit.jupiter.api.Test;
+import org.mockito.MockedConstruction;
+
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.RETURNS_SELF;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.mockConstruction;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
+
+/**
+ * Verifies that sessionIdleTimeout is wired to the session processor builder
when configured, and skipped when -1.
+ */
+class ServiceBusClientFactorySessionIdleTimeoutTest {
+
+ private static final String CONNECTION_STRING
+ =
"Endpoint=sb://camel.servicebus.windows.net/;SharedAccessKeyName=k;SharedAccessKey=s";
+
+ private ServiceBusConfiguration baseConfiguration() {
+ ServiceBusConfiguration cfg = new ServiceBusConfiguration();
+ cfg.setConnectionString(CONNECTION_STRING);
+ cfg.setTopicOrQueueName("myqueue");
+ cfg.setSessionEnabled(true);
+ return cfg;
+ }
+
+ @Test
+ void positiveSessionIdleTimeoutIsPassedToBuilder() {
+ ServiceBusConfiguration cfg = baseConfiguration();
+ cfg.setSessionIdleTimeout(30_000L);
+
+ ServiceBusClientBuilder.ServiceBusSessionProcessorClientBuilder
sessionBuilder
+ =
mock(ServiceBusClientBuilder.ServiceBusSessionProcessorClientBuilder.class,
RETURNS_SELF);
+
when(sessionBuilder.buildProcessorClient()).thenReturn(mock(ServiceBusProcessorClient.class));
+
+ try (MockedConstruction<ServiceBusClientBuilder> builders =
mockConstruction(ServiceBusClientBuilder.class,
+ withSettings().defaultAnswer(RETURNS_SELF),
+ (mock, context) ->
when(mock.sessionProcessor()).thenReturn(sessionBuilder))) {
+
+ new
ServiceBusClientFactory().createServiceBusSessionProcessorClient(cfg, ctx -> {
+ }, err -> {
+ });
+
+
verify(sessionBuilder).sessionIdleTimeout(Duration.ofMillis(30_000L));
+ }
+ }
+
+ @Test
+ void zeroSessionIdleTimeoutSkipsBuilderCall() {
+ ServiceBusConfiguration cfg = baseConfiguration();
+ // 0 is rejected: Duration.ZERO would close every session immediately
on the SDK side
+ cfg.setSessionIdleTimeout(0L);
+
+ ServiceBusClientBuilder.ServiceBusSessionProcessorClientBuilder
sessionBuilder
+ =
mock(ServiceBusClientBuilder.ServiceBusSessionProcessorClientBuilder.class,
RETURNS_SELF);
+
when(sessionBuilder.buildProcessorClient()).thenReturn(mock(ServiceBusProcessorClient.class));
+
+ try (MockedConstruction<ServiceBusClientBuilder> builders =
mockConstruction(ServiceBusClientBuilder.class,
+ withSettings().defaultAnswer(RETURNS_SELF),
+ (mock, context) ->
when(mock.sessionProcessor()).thenReturn(sessionBuilder))) {
+
+ new
ServiceBusClientFactory().createServiceBusSessionProcessorClient(cfg, ctx -> {
+ }, err -> {
+ });
+
+ verify(sessionBuilder, never()).sessionIdleTimeout(any());
+ }
+ }
+
+ @Test
+ void defaultMinusOneSessionIdleTimeoutSkipsBuilderCall() {
+ ServiceBusConfiguration cfg = baseConfiguration();
+ // -1 is the default: "use SDK default"
+ cfg.setSessionIdleTimeout(-1L);
+
+ ServiceBusClientBuilder.ServiceBusSessionProcessorClientBuilder
sessionBuilder
+ =
mock(ServiceBusClientBuilder.ServiceBusSessionProcessorClientBuilder.class,
RETURNS_SELF);
+
when(sessionBuilder.buildProcessorClient()).thenReturn(mock(ServiceBusProcessorClient.class));
+
+ try (MockedConstruction<ServiceBusClientBuilder> builders =
mockConstruction(ServiceBusClientBuilder.class,
+ withSettings().defaultAnswer(RETURNS_SELF),
+ (mock, context) ->
when(mock.sessionProcessor()).thenReturn(sessionBuilder))) {
+
+ new
ServiceBusClientFactory().createServiceBusSessionProcessorClient(cfg, ctx -> {
+ }, err -> {
+ });
+
+ verify(sessionBuilder, never()).sessionIdleTimeout(any());
+ }
+ }
+}
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureServicebusComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureServicebusComponentBuilderFactory.java
index 64b0ced73175..52d548a86ba9 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureServicebusComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureServicebusComponentBuilderFactory.java
@@ -352,6 +352,29 @@ public interface AzureServicebusComponentBuilderFactory {
return this;
}
+
+ /**
+ * Sets the amount of time (millis) to wait for the next message in a
+ * session-enabled consumer before closing the session and trying to
+ * acquire a new session. Applies only when sessionEnabled=true. Use a
+ * value large enough to cover the slowest async route processing time.
+ * A larger value keeps an idle session one of the
maxConcurrentSessions
+ * slots busy for that long before the processor moves on to another
+ * session. Set to -1 (default) to use the SDK default.
+ *
+ * The option is a: <code>long</code> type.
+ *
+ * Default: -1
+ * Group: consumer
+ *
+ * @param sessionIdleTimeout the value to set
+ * @return the dsl builder
+ */
+ default AzureServicebusComponentBuilder sessionIdleTimeout(long
sessionIdleTimeout) {
+ doSetProperty("sessionIdleTimeout", sessionIdleTimeout);
+ return this;
+ }
+
/**
* Sets the type of the SubQueue to connect to.
*
@@ -651,6 +674,7 @@ public interface AzureServicebusComponentBuilderFactory {
case "processorClient":
getOrCreateConfiguration((ServiceBusComponent)
component).setProcessorClient((com.azure.messaging.servicebus.ServiceBusProcessorClient)
value); return true;
case "serviceBusReceiveMode":
getOrCreateConfiguration((ServiceBusComponent)
component).setServiceBusReceiveMode((com.azure.messaging.servicebus.models.ServiceBusReceiveMode)
value); return true;
case "sessionEnabled":
getOrCreateConfiguration((ServiceBusComponent)
component).setSessionEnabled((boolean) value); return true;
+ case "sessionIdleTimeout":
getOrCreateConfiguration((ServiceBusComponent)
component).setSessionIdleTimeout((long) value); return true;
case "subQueue": getOrCreateConfiguration((ServiceBusComponent)
component).setSubQueue((com.azure.messaging.servicebus.models.SubQueue) value);
return true;
case "subscriptionName":
getOrCreateConfiguration((ServiceBusComponent)
component).setSubscriptionName((java.lang.String) value); return true;
case "binary": getOrCreateConfiguration((ServiceBusComponent)
component).setBinary((boolean) value); return true;
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServiceBusEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServiceBusEndpointBuilderFactory.java
index 09ee617774d8..679148699e0a 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServiceBusEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServiceBusEndpointBuilderFactory.java
@@ -515,6 +515,48 @@ public interface ServiceBusEndpointBuilderFactory {
doSetProperty("sessionEnabled", sessionEnabled);
return this;
}
+ /**
+ * Sets the amount of time (millis) to wait for the next message in a
+ * session-enabled consumer before closing the session and trying to
+ * acquire a new session. Applies only when sessionEnabled=true. Use a
+ * value large enough to cover the slowest async route processing time.
+ * A larger value keeps an idle session one of the
maxConcurrentSessions
+ * slots busy for that long before the processor moves on to another
+ * session. Set to -1 (default) to use the SDK default.
+ *
+ * The option is a: <code>long</code> type.
+ *
+ * Default: -1
+ * Group: consumer
+ *
+ * @param sessionIdleTimeout the value to set
+ * @return the dsl builder
+ */
+ default ServiceBusEndpointConsumerBuilder sessionIdleTimeout(long
sessionIdleTimeout) {
+ doSetProperty("sessionIdleTimeout", sessionIdleTimeout);
+ return this;
+ }
+ /**
+ * Sets the amount of time (millis) to wait for the next message in a
+ * session-enabled consumer before closing the session and trying to
+ * acquire a new session. Applies only when sessionEnabled=true. Use a
+ * value large enough to cover the slowest async route processing time.
+ * A larger value keeps an idle session one of the
maxConcurrentSessions
+ * slots busy for that long before the processor moves on to another
+ * session. Set to -1 (default) to use the SDK default.
+ *
+ * The option will be converted to a <code>long</code> type.
+ *
+ * Default: -1
+ * Group: consumer
+ *
+ * @param sessionIdleTimeout the value to set
+ * @return the dsl builder
+ */
+ default ServiceBusEndpointConsumerBuilder sessionIdleTimeout(String
sessionIdleTimeout) {
+ doSetProperty("sessionIdleTimeout", sessionIdleTimeout);
+ return this;
+ }
/**
* Sets the type of the SubQueue to connect to.
*