This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 7185c79b007a CAMEL-27940: camel-pulsar - Pass batchingMaxMessages, 
reject the STICKY key-shared policy, close the client the endpoint creates, and 
pass only valid producer limits (#31341)
7185c79b007a is described below

commit 7185c79b007a4302c9f0e3d73e716f2cb144bebd
Author: Ayush Kulshreshtha <[email protected]>
AuthorDate: Sun Dec 6 02:27:19 2026 +0530

    CAMEL-27940: camel-pulsar - Pass batchingMaxMessages, reject the STICKY 
key-shared policy, close the client the endpoint creates, and pass only valid 
producer limits (#31341)
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 .../apache/camel/catalog/components/pulsar.json    |  20 +--
 .../apache/camel/catalog/main/sensitive-keys.json  |   1 +
 .../component/pulsar/PulsarEndpointUriFactory.java |   4 +-
 .../org/apache/camel/component/pulsar/pulsar.json  |  20 +--
 .../component/pulsar/PulsarConfiguration.java      |  23 ++--
 .../camel/component/pulsar/PulsarEndpoint.java     |  19 +++
 .../camel/component/pulsar/PulsarProducer.java     |  12 +-
 .../consumers/CommonCreationStrategyImpl.java      |   7 +-
 .../pulsar/PulsarEndpointClientLifecycleTest.java  | 105 ++++++++++++++++
 .../pulsar/PulsarProducerOptionsTest.java          | 135 +++++++++++++++++++++
 .../consumers/CommonCreationStrategyImplTest.java  |  21 ++++
 .../java/org/apache/camel/util/SensitiveUtils.java |   2 +
 .../ROOT/pages/camel-4x-upgrade-guide-4_25.adoc    |  16 +++
 .../dsl/PulsarComponentBuilderFactory.java         |  21 ++--
 .../endpoint/dsl/PulsarEndpointBuilderFactory.java |  36 +++---
 15 files changed, 378 insertions(+), 64 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pulsar.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pulsar.json
index fca3900ab733..d9a70370b760 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pulsar.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pulsar.json
@@ -25,7 +25,7 @@
   },
   "componentProperties": {
     "authenticationClass": { "index": 0, "kind": "property", "displayName": 
"Authentication Class", "group": "common", "label": "common", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The fully qualified class name of the Pulsar 
authentication plugin, such as org.apache.pulsar [...]
-    "authenticationParams": { "index": 1, "kind": "property", "displayName": 
"Authentication Params", "group": "common", "label": "common", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The parameters of the authentication plugin 
set in authenticationClass, as one string in th [...]
+    "authenticationParams": { "index": 1, "kind": "property", "displayName": 
"Authentication Params", "group": "common", "label": "common", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The parameters of the authentication plugin 
set in authenticationClass [...]
     "configuration": { "index": 2, "kind": "property", "displayName": 
"Configuration", "group": "common", "label": "", "required": false, "type": 
"object", "javaType": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Allows to pre-configure the Pulsar component with common options that the 
endpoints will reuse." },
     "serviceUrl": { "index": 3, "kind": "property", "displayName": "Service 
Url", "group": "common", "label": "common", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The Pulsar service URL to connect to, such as 
pulsar:\/\/localhost:6650, or pulsar+ssl:\/\/host:6651 for TLS. N [...]
     "ackGroupTimeMillis": { "index": 4, "kind": "property", "displayName": 
"Ack Group Time Millis", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 100, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The time in milliseconds during which the 
consumer groups the acknowledgements  [...]
@@ -39,7 +39,7 @@
     "deadLetterTopic": { "index": 12, "kind": "property", "displayName": "Dead 
Letter Topic", "group": "consumer", "label": "consumer", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The name of the dead letter topic. Only used 
when maxRedeliverCount is set. If not set, the Pul [...]
     "enableBatchIndexAcknowledgment": { "index": 13, "kind": "property", 
"displayName": "Enable Batch Index Acknowledgment", "group": "consumer", 
"label": "consumer", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "When enabled, allows each individual message 
in a [...]
     "enableRetry": { "index": 14, "kind": "property", "displayName": "Enable 
Retry", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "Whether to enable the retry letter topic mode 
of the Pulsar consumer: the consumer also s [...]
-    "keySharedPolicy": { "index": 15, "kind": "property", "displayName": "Key 
Shared Policy", "group": "consumer", "label": "consumer", "required": false, 
"type": "enum", "javaType": "java.lang.String", "enum": [ "AUTO_SPLIT", 
"STICKY" ], "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "The key shared policy of 
the consumers, for the KEY_SHARED su [...]
+    "keySharedPolicy": { "index": 15, "kind": "property", "displayName": "Key 
Shared Policy", "group": "consumer", "label": "consumer", "required": false, 
"type": "enum", "javaType": "java.lang.String", "enum": [ "AUTO_SPLIT" ], 
"deprecated": false, "autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The key shared policy of the consumers, for 
the KEY_SHARED subscription [...]
     "maxRedeliverCount": { "index": 16, "kind": "property", "displayName": 
"Max Redeliver Count", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The number of redeliveries after which a 
message is sent to the dead letter topic instead [...]
     "messageListener": { "index": 17, "kind": "property", "displayName": 
"Message Listener", "group": "consumer", "label": "consumer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "Whether the Pulsar 
client delivers the messages to a message listener, on the list [...]
     "negativeAckRedeliveryBackoff": { "index": 18, "kind": "property", 
"displayName": "Negative Ack Redelivery Backoff", "group": "consumer", "label": 
"consumer", "required": false, "type": "object", "javaType": 
"org.apache.pulsar.client.api.RedeliveryBackoff", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "A RedeliveryBackoff, such as a Multipl [...]
@@ -57,8 +57,8 @@
     "pulsarMessageReceiptFactory": { "index": 30, "kind": "property", 
"displayName": "Pulsar Message Receipt Factory", "group": "consumer 
(advanced)", "label": "consumer,advanced", "required": false, "type": "object", 
"javaType": "org.apache.camel.component.pulsar.PulsarMessageReceiptFactory", 
"deprecated": false, "autowired": false, "secret": false, "description": "A 
factory that creates the PulsarMessageReceipt set in the message_receipt header 
when allowManualAcknowledgement is enable [...]
     "batcherBuilder": { "index": 31, "kind": "property", "displayName": 
"Batcher Builder", "group": "producer", "label": "producer", "required": false, 
"type": "enum", "javaType": "org.apache.pulsar.client.api.BatcherBuilder", 
"enum": [ "DEFAULT", "KEY_BASED" ], "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": "DEFAULT", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "Control ba [...]
     "batchingEnabled": { "index": 32, "kind": "property", "displayName": 
"Batching Enabled", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "Whether the producer 
groups the messages into batches. Must be disabled to use chu [...]
-    "batchingMaxMessages": { "index": 33, "kind": "property", "displayName": 
"Batching Max Messages", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 1000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The maximum number of messages in a batch. 
Currently not passed to the Pulsar [...]
-    "batchingMaxPublishDelayMicros": { "index": 34, "kind": "property", 
"displayName": "Batching Max Publish Delay Micros", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "long", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 1000, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "The maximum time in 
microseconds that the producer hol [...]
+    "batchingMaxMessages": { "index": 33, "kind": "property", "displayName": 
"Batching Max Messages", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 1000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The maximum number of messages in a batch, 
when batchingEnabled is true." },
+    "batchingMaxPublishDelayMicros": { "index": 34, "kind": "property", 
"displayName": "Batching Max Publish Delay Micros", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "long", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 1000, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "The maximum time in 
microseconds that the producer hol [...]
     "blockIfQueueFull": { "index": 35, "kind": "property", "displayName": 
"Block If Queue Full", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "Whether a send waits 
when the queue of pending messages (maxPendingMessages)  [...]
     "chunkingEnabled": { "index": 36, "kind": "property", "displayName": 
"Chunking Enabled", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "Whether the producer 
splits a message that is larger than the maximum message siz [...]
     "compressionType": { "index": 37, "kind": "property", "displayName": 
"Compression Type", "group": "producer", "label": "producer", "required": 
false, "type": "enum", "javaType": 
"org.apache.pulsar.client.api.CompressionType", "enum": [ "NONE", "LZ4", 
"ZLIB", "ZSTD", "SNAPPY" ], "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": "NONE", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "descript [...]
@@ -66,7 +66,7 @@
     "initialSequenceId": { "index": 39, "kind": "property", "displayName": 
"Initial Sequence Id", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": -1, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The first message published will have a 
sequence Id of initialSequenceId plus one. [...]
     "lazyStartProducer": { "index": 40, "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 [...]
     "maxPendingMessages": { "index": 41, "kind": "property", "displayName": 
"Max Pending Messages", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 1000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The maximum number of sent messages that wait 
for the acknowledgement of the br [...]
-    "maxPendingMessagesAcrossPartitions": { "index": 42, "kind": "property", 
"displayName": "Max Pending Messages Across Partitions", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "int", 
"deprecated": true, "autowired": false, "secret": false, "defaultValue": 50000, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "The maximum number of 
pending messages across [...]
+    "maxPendingMessagesAcrossPartitions": { "index": 42, "kind": "property", 
"displayName": "Max Pending Messages Across Partitions", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "int", 
"deprecated": true, "deprecationNote": "The Pulsar client deprecates it, as it 
limits the memory used by the pending messages of all the producers of a client 
instead", "autowired": false, "secret": false, "defaultValue": 50000, 
"configurationClass": "org.apa [...]
     "messageRouter": { "index": 43, "kind": "property", "displayName": 
"Message Router", "group": "producer", "label": "producer", "required": false, 
"type": "object", "javaType": "org.apache.pulsar.client.api.MessageRouter", 
"deprecated": false, "autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "A custom MessageRouter that chooses the 
partition of a partitioned topic f [...]
     "messageRoutingMode": { "index": 44, "kind": "property", "displayName": 
"Message Routing Mode", "group": "producer", "label": "producer", "required": 
false, "type": "enum", "javaType": 
"org.apache.pulsar.client.api.MessageRoutingMode", "enum": [ "SinglePartition", 
"RoundRobinPartition", "CustomPartition" ], "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": "RoundRobinPartition", 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"co [...]
     "producerName": { "index": 45, "kind": "property", "displayName": 
"Producer Name", "group": "producer", "label": "producer", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "Name of the producer. If unset, lets Pulsar 
select a unique identifier." },
@@ -109,7 +109,7 @@
     "namespace": { "index": 2, "kind": "path", "displayName": "Namespace", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The namespace of the topic, within the tenant." },
     "topic": { "index": 3, "kind": "path", "displayName": "Topic", "group": 
"common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the topic. With the topicsPattern option, a regular 
expression that the names of the topics of the namespace must match." },
     "authenticationClass": { "index": 4, "kind": "parameter", "displayName": 
"Authentication Class", "group": "common", "label": "common", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The fully qualified class name of the 
Pulsar authentication plugin, such as org.apache [...]
-    "authenticationParams": { "index": 5, "kind": "parameter", "displayName": 
"Authentication Params", "group": "common", "label": "common", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The parameters of the authentication 
plugin set in authenticationClass, as one strin [...]
+    "authenticationParams": { "index": 5, "kind": "parameter", "displayName": 
"Authentication Params", "group": "common", "label": "common", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The parameters of the authentication 
plugin set in authenticati [...]
     "serviceUrl": { "index": 6, "kind": "parameter", "displayName": "Service 
Url", "group": "common", "label": "common", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The Pulsar service URL to connect to, 
such as pulsar:\/\/localhost:6650, or pulsar+ssl:\/\/host:6651 for [...]
     "ackGroupTimeMillis": { "index": 7, "kind": "parameter", "displayName": 
"Ack Group Time Millis", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 100, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The time in milliseconds during which 
the consumer groups the acknowledg [...]
     "ackTimeoutMillis": { "index": 8, "kind": "parameter", "displayName": "Ack 
Timeout Millis", "group": "consumer", "label": "consumer", "required": false, 
"type": "integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": 10000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The time in milliseconds after which a 
message that is not acknowledged is  [...]
@@ -121,7 +121,7 @@
     "deadLetterTopic": { "index": 14, "kind": "parameter", "displayName": 
"Dead Letter Topic", "group": "consumer", "label": "consumer", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The name of the dead letter topic. Only 
used when maxRedeliverCount is set. If not set,  [...]
     "enableBatchIndexAcknowledgment": { "index": 15, "kind": "parameter", 
"displayName": "Enable Batch Index Acknowledgment", "group": "consumer", 
"label": "consumer", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "When enabled, allows each individual 
messa [...]
     "enableRetry": { "index": 16, "kind": "parameter", "displayName": "Enable 
Retry", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "Whether to enable the retry letter topic 
mode of the Pulsar consumer: the consumer [...]
-    "keySharedPolicy": { "index": 17, "kind": "parameter", "displayName": "Key 
Shared Policy", "group": "consumer", "label": "consumer", "required": false, 
"type": "enum", "javaType": "java.lang.String", "enum": [ "AUTO_SPLIT", 
"STICKY" ], "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "The key shared 
policy of the consumers, for the KEY_SH [...]
+    "keySharedPolicy": { "index": 17, "kind": "parameter", "displayName": "Key 
Shared Policy", "group": "consumer", "label": "consumer", "required": false, 
"type": "enum", "javaType": "java.lang.String", "enum": [ "AUTO_SPLIT" ], 
"deprecated": false, "autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The key shared policy of the consumers, 
for the KEY_SHARED subsc [...]
     "maxRedeliverCount": { "index": 18, "kind": "parameter", "displayName": 
"Max Redeliver Count", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The number of redeliveries after which a 
message is sent to the dead letter topic  [...]
     "messageListener": { "index": 19, "kind": "parameter", "displayName": 
"Message Listener", "group": "consumer", "label": "consumer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "Whether the Pulsar 
client delivers the messages to a message listener, on t [...]
     "negativeAckRedeliveryBackoff": { "index": 20, "kind": "parameter", 
"displayName": "Negative Ack Redelivery Backoff", "group": "consumer", "label": 
"consumer", "required": false, "type": "object", "javaType": 
"org.apache.pulsar.client.api.RedeliveryBackoff", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "A RedeliveryBackoff, such as a  [...]
@@ -141,15 +141,15 @@
     "exchangePattern": { "index": 34, "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." },
     "batcherBuilder": { "index": 35, "kind": "parameter", "displayName": 
"Batcher Builder", "group": "producer", "label": "producer", "required": false, 
"type": "enum", "javaType": "org.apache.pulsar.client.api.BatcherBuilder", 
"enum": [ "DEFAULT", "KEY_BASED" ], "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": "DEFAULT", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "Con [...]
     "batchingEnabled": { "index": 36, "kind": "parameter", "displayName": 
"Batching Enabled", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "Whether the 
producer groups the messages into batches. Must be disabled to  [...]
-    "batchingMaxMessages": { "index": 37, "kind": "parameter", "displayName": 
"Batching Max Messages", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 1000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The maximum number of messages in a 
batch. Currently not passed to the [...]
-    "batchingMaxPublishDelayMicros": { "index": 38, "kind": "parameter", 
"displayName": "Batching Max Publish Delay Micros", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "long", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 1000, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "The maximum time 
in microseconds that the produ [...]
+    "batchingMaxMessages": { "index": 37, "kind": "parameter", "displayName": 
"Batching Max Messages", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 1000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The maximum number of messages in a 
batch, when batchingEnabled is true." },
+    "batchingMaxPublishDelayMicros": { "index": 38, "kind": "parameter", 
"displayName": "Batching Max Publish Delay Micros", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "long", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 1000, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "The maximum time 
in microseconds that the produ [...]
     "blockIfQueueFull": { "index": 39, "kind": "parameter", "displayName": 
"Block If Queue Full", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "Whether a send 
waits when the queue of pending messages (maxPendingMes [...]
     "chunkingEnabled": { "index": 40, "kind": "parameter", "displayName": 
"Chunking Enabled", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "Whether the 
producer splits a message that is larger than the maximum mess [...]
     "compressionType": { "index": 41, "kind": "parameter", "displayName": 
"Compression Type", "group": "producer", "label": "producer", "required": 
false, "type": "enum", "javaType": 
"org.apache.pulsar.client.api.CompressionType", "enum": [ "NONE", "LZ4", 
"ZLIB", "ZSTD", "SNAPPY" ], "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": "NONE", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "d [...]
     "hashingScheme": { "index": 42, "kind": "parameter", "displayName": 
"Hashing Scheme", "group": "producer", "label": "producer", "required": false, 
"type": "enum", "javaType": "java.lang.String", "enum": [ "JavaStringHash", 
"Murmur3_32Hash" ], "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "JavaStringHash", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The hash func [...]
     "initialSequenceId": { "index": 43, "kind": "parameter", "displayName": 
"Initial Sequence Id", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": -1, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The first message published will have a 
sequence Id of initialSequenceId pl [...]
     "maxPendingMessages": { "index": 44, "kind": "parameter", "displayName": 
"Max Pending Messages", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 1000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The maximum number of sent messages that 
wait for the acknowledgement of [...]
-    "maxPendingMessagesAcrossPartitions": { "index": 45, "kind": "parameter", 
"displayName": "Max Pending Messages Across Partitions", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "int", 
"deprecated": true, "autowired": false, "secret": false, "defaultValue": 50000, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "The maximum number 
of pending messages [...]
+    "maxPendingMessagesAcrossPartitions": { "index": 45, "kind": "parameter", 
"displayName": "Max Pending Messages Across Partitions", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "int", 
"deprecated": true, "deprecationNote": "The Pulsar client deprecates it, as it 
limits the memory used by the pending messages of all the producers of a client 
instead", "autowired": false, "secret": false, "defaultValue": 50000, 
"configurationClass": "org.ap [...]
     "messageRouter": { "index": 46, "kind": "parameter", "displayName": 
"Message Router", "group": "producer", "label": "producer", "required": false, 
"type": "object", "javaType": "org.apache.pulsar.client.api.MessageRouter", 
"deprecated": false, "autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "A custom MessageRouter that chooses the 
partition of a partitioned  [...]
     "messageRoutingMode": { "index": 47, "kind": "parameter", "displayName": 
"Message Routing Mode", "group": "producer", "label": "producer", "required": 
false, "type": "enum", "javaType": 
"org.apache.pulsar.client.api.MessageRoutingMode", "enum": [ "SinglePartition", 
"RoundRobinPartition", "CustomPartition" ], "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": "RoundRobinPartition", 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"c [...]
     "producerName": { "index": 48, "kind": "parameter", "displayName": 
"Producer Name", "group": "producer", "label": "producer", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "Name of the producer. If unset, lets 
Pulsar select a unique identifier." },
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/sensitive-keys.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/sensitive-keys.json
index 6c36959eb00e..cc4b26062543 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/sensitive-keys.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/sensitive-keys.json
@@ -14,6 +14,7 @@
   "apitoken",
   "apiuser",
   "apiusername",
+  "authenticationparams",
   "authenticationtoken",
   "authkey",
   "authorization",
diff --git 
a/components/camel-pulsar/src/generated/java/org/apache/camel/component/pulsar/PulsarEndpointUriFactory.java
 
b/components/camel-pulsar/src/generated/java/org/apache/camel/component/pulsar/PulsarEndpointUriFactory.java
index 4383ad115715..4ba0a4a28444 100644
--- 
a/components/camel-pulsar/src/generated/java/org/apache/camel/component/pulsar/PulsarEndpointUriFactory.java
+++ 
b/components/camel-pulsar/src/generated/java/org/apache/camel/component/pulsar/PulsarEndpointUriFactory.java
@@ -80,7 +80,9 @@ public class PulsarEndpointUriFactory extends 
org.apache.camel.support.component
         props.add("topic");
         props.add("topicsPattern");
         PROPERTY_NAMES = Collections.unmodifiableSet(props);
-        SECRET_PROPERTY_NAMES = Collections.emptySet();
+        Set<String> secretProps = new HashSet<>(1);
+        secretProps.add("authenticationParams");
+        SECRET_PROPERTY_NAMES = Collections.unmodifiableSet(secretProps);
         ENDPOINT_IDENTITY_PROPERTY_NAMES = Collections.emptySet();
         MULTI_VALUE_PREFIXES = Collections.emptyMap();
     }
diff --git 
a/components/camel-pulsar/src/generated/resources/META-INF/org/apache/camel/component/pulsar/pulsar.json
 
b/components/camel-pulsar/src/generated/resources/META-INF/org/apache/camel/component/pulsar/pulsar.json
index fca3900ab733..d9a70370b760 100644
--- 
a/components/camel-pulsar/src/generated/resources/META-INF/org/apache/camel/component/pulsar/pulsar.json
+++ 
b/components/camel-pulsar/src/generated/resources/META-INF/org/apache/camel/component/pulsar/pulsar.json
@@ -25,7 +25,7 @@
   },
   "componentProperties": {
     "authenticationClass": { "index": 0, "kind": "property", "displayName": 
"Authentication Class", "group": "common", "label": "common", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The fully qualified class name of the Pulsar 
authentication plugin, such as org.apache.pulsar [...]
-    "authenticationParams": { "index": 1, "kind": "property", "displayName": 
"Authentication Params", "group": "common", "label": "common", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The parameters of the authentication plugin 
set in authenticationClass, as one string in th [...]
+    "authenticationParams": { "index": 1, "kind": "property", "displayName": 
"Authentication Params", "group": "common", "label": "common", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The parameters of the authentication plugin 
set in authenticationClass [...]
     "configuration": { "index": 2, "kind": "property", "displayName": 
"Configuration", "group": "common", "label": "", "required": false, "type": 
"object", "javaType": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Allows to pre-configure the Pulsar component with common options that the 
endpoints will reuse." },
     "serviceUrl": { "index": 3, "kind": "property", "displayName": "Service 
Url", "group": "common", "label": "common", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The Pulsar service URL to connect to, such as 
pulsar:\/\/localhost:6650, or pulsar+ssl:\/\/host:6651 for TLS. N [...]
     "ackGroupTimeMillis": { "index": 4, "kind": "property", "displayName": 
"Ack Group Time Millis", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 100, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The time in milliseconds during which the 
consumer groups the acknowledgements  [...]
@@ -39,7 +39,7 @@
     "deadLetterTopic": { "index": 12, "kind": "property", "displayName": "Dead 
Letter Topic", "group": "consumer", "label": "consumer", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The name of the dead letter topic. Only used 
when maxRedeliverCount is set. If not set, the Pul [...]
     "enableBatchIndexAcknowledgment": { "index": 13, "kind": "property", 
"displayName": "Enable Batch Index Acknowledgment", "group": "consumer", 
"label": "consumer", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "When enabled, allows each individual message 
in a [...]
     "enableRetry": { "index": 14, "kind": "property", "displayName": "Enable 
Retry", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "Whether to enable the retry letter topic mode 
of the Pulsar consumer: the consumer also s [...]
-    "keySharedPolicy": { "index": 15, "kind": "property", "displayName": "Key 
Shared Policy", "group": "consumer", "label": "consumer", "required": false, 
"type": "enum", "javaType": "java.lang.String", "enum": [ "AUTO_SPLIT", 
"STICKY" ], "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "The key shared policy of 
the consumers, for the KEY_SHARED su [...]
+    "keySharedPolicy": { "index": 15, "kind": "property", "displayName": "Key 
Shared Policy", "group": "consumer", "label": "consumer", "required": false, 
"type": "enum", "javaType": "java.lang.String", "enum": [ "AUTO_SPLIT" ], 
"deprecated": false, "autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The key shared policy of the consumers, for 
the KEY_SHARED subscription [...]
     "maxRedeliverCount": { "index": 16, "kind": "property", "displayName": 
"Max Redeliver Count", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The number of redeliveries after which a 
message is sent to the dead letter topic instead [...]
     "messageListener": { "index": 17, "kind": "property", "displayName": 
"Message Listener", "group": "consumer", "label": "consumer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "Whether the Pulsar 
client delivers the messages to a message listener, on the list [...]
     "negativeAckRedeliveryBackoff": { "index": 18, "kind": "property", 
"displayName": "Negative Ack Redelivery Backoff", "group": "consumer", "label": 
"consumer", "required": false, "type": "object", "javaType": 
"org.apache.pulsar.client.api.RedeliveryBackoff", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "A RedeliveryBackoff, such as a Multipl [...]
@@ -57,8 +57,8 @@
     "pulsarMessageReceiptFactory": { "index": 30, "kind": "property", 
"displayName": "Pulsar Message Receipt Factory", "group": "consumer 
(advanced)", "label": "consumer,advanced", "required": false, "type": "object", 
"javaType": "org.apache.camel.component.pulsar.PulsarMessageReceiptFactory", 
"deprecated": false, "autowired": false, "secret": false, "description": "A 
factory that creates the PulsarMessageReceipt set in the message_receipt header 
when allowManualAcknowledgement is enable [...]
     "batcherBuilder": { "index": 31, "kind": "property", "displayName": 
"Batcher Builder", "group": "producer", "label": "producer", "required": false, 
"type": "enum", "javaType": "org.apache.pulsar.client.api.BatcherBuilder", 
"enum": [ "DEFAULT", "KEY_BASED" ], "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": "DEFAULT", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "Control ba [...]
     "batchingEnabled": { "index": 32, "kind": "property", "displayName": 
"Batching Enabled", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "Whether the producer 
groups the messages into batches. Must be disabled to use chu [...]
-    "batchingMaxMessages": { "index": 33, "kind": "property", "displayName": 
"Batching Max Messages", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 1000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The maximum number of messages in a batch. 
Currently not passed to the Pulsar [...]
-    "batchingMaxPublishDelayMicros": { "index": 34, "kind": "property", 
"displayName": "Batching Max Publish Delay Micros", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "long", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 1000, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "The maximum time in 
microseconds that the producer hol [...]
+    "batchingMaxMessages": { "index": 33, "kind": "property", "displayName": 
"Batching Max Messages", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 1000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The maximum number of messages in a batch, 
when batchingEnabled is true." },
+    "batchingMaxPublishDelayMicros": { "index": 34, "kind": "property", 
"displayName": "Batching Max Publish Delay Micros", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "long", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 1000, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "The maximum time in 
microseconds that the producer hol [...]
     "blockIfQueueFull": { "index": 35, "kind": "property", "displayName": 
"Block If Queue Full", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "Whether a send waits 
when the queue of pending messages (maxPendingMessages)  [...]
     "chunkingEnabled": { "index": 36, "kind": "property", "displayName": 
"Chunking Enabled", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "Whether the producer 
splits a message that is larger than the maximum message siz [...]
     "compressionType": { "index": 37, "kind": "property", "displayName": 
"Compression Type", "group": "producer", "label": "producer", "required": 
false, "type": "enum", "javaType": 
"org.apache.pulsar.client.api.CompressionType", "enum": [ "NONE", "LZ4", 
"ZLIB", "ZSTD", "SNAPPY" ], "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": "NONE", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "descript [...]
@@ -66,7 +66,7 @@
     "initialSequenceId": { "index": 39, "kind": "property", "displayName": 
"Initial Sequence Id", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": -1, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The first message published will have a 
sequence Id of initialSequenceId plus one. [...]
     "lazyStartProducer": { "index": 40, "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 [...]
     "maxPendingMessages": { "index": 41, "kind": "property", "displayName": 
"Max Pending Messages", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 1000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "The maximum number of sent messages that wait 
for the acknowledgement of the br [...]
-    "maxPendingMessagesAcrossPartitions": { "index": 42, "kind": "property", 
"displayName": "Max Pending Messages Across Partitions", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "int", 
"deprecated": true, "autowired": false, "secret": false, "defaultValue": 50000, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "configuration", "description": "The maximum number of 
pending messages across [...]
+    "maxPendingMessagesAcrossPartitions": { "index": 42, "kind": "property", 
"displayName": "Max Pending Messages Across Partitions", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "int", 
"deprecated": true, "deprecationNote": "The Pulsar client deprecates it, as it 
limits the memory used by the pending messages of all the producers of a client 
instead", "autowired": false, "secret": false, "defaultValue": 50000, 
"configurationClass": "org.apa [...]
     "messageRouter": { "index": 43, "kind": "property", "displayName": 
"Message Router", "group": "producer", "label": "producer", "required": false, 
"type": "object", "javaType": "org.apache.pulsar.client.api.MessageRouter", 
"deprecated": false, "autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "A custom MessageRouter that chooses the 
partition of a partitioned topic f [...]
     "messageRoutingMode": { "index": 44, "kind": "property", "displayName": 
"Message Routing Mode", "group": "producer", "label": "producer", "required": 
false, "type": "enum", "javaType": 
"org.apache.pulsar.client.api.MessageRoutingMode", "enum": [ "SinglePartition", 
"RoundRobinPartition", "CustomPartition" ], "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": "RoundRobinPartition", 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"co [...]
     "producerName": { "index": 45, "kind": "property", "displayName": 
"Producer Name", "group": "producer", "label": "producer", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"configuration", "description": "Name of the producer. If unset, lets Pulsar 
select a unique identifier." },
@@ -109,7 +109,7 @@
     "namespace": { "index": 2, "kind": "path", "displayName": "Namespace", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The namespace of the topic, within the tenant." },
     "topic": { "index": 3, "kind": "path", "displayName": "Topic", "group": 
"common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the topic. With the topicsPattern option, a regular 
expression that the names of the topics of the namespace must match." },
     "authenticationClass": { "index": 4, "kind": "parameter", "displayName": 
"Authentication Class", "group": "common", "label": "common", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The fully qualified class name of the 
Pulsar authentication plugin, such as org.apache [...]
-    "authenticationParams": { "index": 5, "kind": "parameter", "displayName": 
"Authentication Params", "group": "common", "label": "common", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The parameters of the authentication 
plugin set in authenticationClass, as one strin [...]
+    "authenticationParams": { "index": 5, "kind": "parameter", "displayName": 
"Authentication Params", "group": "common", "label": "common", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The parameters of the authentication 
plugin set in authenticati [...]
     "serviceUrl": { "index": 6, "kind": "parameter", "displayName": "Service 
Url", "group": "common", "label": "common", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The Pulsar service URL to connect to, 
such as pulsar:\/\/localhost:6650, or pulsar+ssl:\/\/host:6651 for [...]
     "ackGroupTimeMillis": { "index": 7, "kind": "parameter", "displayName": 
"Ack Group Time Millis", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 100, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The time in milliseconds during which 
the consumer groups the acknowledg [...]
     "ackTimeoutMillis": { "index": 8, "kind": "parameter", "displayName": "Ack 
Timeout Millis", "group": "consumer", "label": "consumer", "required": false, 
"type": "integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": 10000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The time in milliseconds after which a 
message that is not acknowledged is  [...]
@@ -121,7 +121,7 @@
     "deadLetterTopic": { "index": 14, "kind": "parameter", "displayName": 
"Dead Letter Topic", "group": "consumer", "label": "consumer", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The name of the dead letter topic. Only 
used when maxRedeliverCount is set. If not set,  [...]
     "enableBatchIndexAcknowledgment": { "index": 15, "kind": "parameter", 
"displayName": "Enable Batch Index Acknowledgment", "group": "consumer", 
"label": "consumer", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "When enabled, allows each individual 
messa [...]
     "enableRetry": { "index": 16, "kind": "parameter", "displayName": "Enable 
Retry", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "Whether to enable the retry letter topic 
mode of the Pulsar consumer: the consumer [...]
-    "keySharedPolicy": { "index": 17, "kind": "parameter", "displayName": "Key 
Shared Policy", "group": "consumer", "label": "consumer", "required": false, 
"type": "enum", "javaType": "java.lang.String", "enum": [ "AUTO_SPLIT", 
"STICKY" ], "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "The key shared 
policy of the consumers, for the KEY_SH [...]
+    "keySharedPolicy": { "index": 17, "kind": "parameter", "displayName": "Key 
Shared Policy", "group": "consumer", "label": "consumer", "required": false, 
"type": "enum", "javaType": "java.lang.String", "enum": [ "AUTO_SPLIT" ], 
"deprecated": false, "autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The key shared policy of the consumers, 
for the KEY_SHARED subsc [...]
     "maxRedeliverCount": { "index": 18, "kind": "parameter", "displayName": 
"Max Redeliver Count", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The number of redeliveries after which a 
message is sent to the dead letter topic  [...]
     "messageListener": { "index": 19, "kind": "parameter", "displayName": 
"Message Listener", "group": "consumer", "label": "consumer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "Whether the Pulsar 
client delivers the messages to a message listener, on t [...]
     "negativeAckRedeliveryBackoff": { "index": 20, "kind": "parameter", 
"displayName": "Negative Ack Redelivery Backoff", "group": "consumer", "label": 
"consumer", "required": false, "type": "object", "javaType": 
"org.apache.pulsar.client.api.RedeliveryBackoff", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "A RedeliveryBackoff, such as a  [...]
@@ -141,15 +141,15 @@
     "exchangePattern": { "index": 34, "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." },
     "batcherBuilder": { "index": 35, "kind": "parameter", "displayName": 
"Batcher Builder", "group": "producer", "label": "producer", "required": false, 
"type": "enum", "javaType": "org.apache.pulsar.client.api.BatcherBuilder", 
"enum": [ "DEFAULT", "KEY_BASED" ], "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": "DEFAULT", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "Con [...]
     "batchingEnabled": { "index": 36, "kind": "parameter", "displayName": 
"Batching Enabled", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "Whether the 
producer groups the messages into batches. Must be disabled to  [...]
-    "batchingMaxMessages": { "index": 37, "kind": "parameter", "displayName": 
"Batching Max Messages", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 1000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The maximum number of messages in a 
batch. Currently not passed to the [...]
-    "batchingMaxPublishDelayMicros": { "index": 38, "kind": "parameter", 
"displayName": "Batching Max Publish Delay Micros", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "long", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 1000, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "The maximum time 
in microseconds that the produ [...]
+    "batchingMaxMessages": { "index": 37, "kind": "parameter", "displayName": 
"Batching Max Messages", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 1000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The maximum number of messages in a 
batch, when batchingEnabled is true." },
+    "batchingMaxPublishDelayMicros": { "index": 38, "kind": "parameter", 
"displayName": "Batching Max Publish Delay Micros", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "long", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 1000, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "The maximum time 
in microseconds that the produ [...]
     "blockIfQueueFull": { "index": 39, "kind": "parameter", "displayName": 
"Block If Queue Full", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "Whether a send 
waits when the queue of pending messages (maxPendingMes [...]
     "chunkingEnabled": { "index": 40, "kind": "parameter", "displayName": 
"Chunking Enabled", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "Whether the 
producer splits a message that is larger than the maximum mess [...]
     "compressionType": { "index": 41, "kind": "parameter", "displayName": 
"Compression Type", "group": "producer", "label": "producer", "required": 
false, "type": "enum", "javaType": 
"org.apache.pulsar.client.api.CompressionType", "enum": [ "NONE", "LZ4", 
"ZLIB", "ZSTD", "SNAPPY" ], "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": "NONE", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "d [...]
     "hashingScheme": { "index": 42, "kind": "parameter", "displayName": 
"Hashing Scheme", "group": "producer", "label": "producer", "required": false, 
"type": "enum", "javaType": "java.lang.String", "enum": [ "JavaStringHash", 
"Murmur3_32Hash" ], "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "JavaStringHash", "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The hash func [...]
     "initialSequenceId": { "index": 43, "kind": "parameter", "displayName": 
"Initial Sequence Id", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": -1, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The first message published will have a 
sequence Id of initialSequenceId pl [...]
     "maxPendingMessages": { "index": 44, "kind": "parameter", "displayName": 
"Max Pending Messages", "group": "producer", "label": "producer", "required": 
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 1000, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "The maximum number of sent messages that 
wait for the acknowledgement of [...]
-    "maxPendingMessagesAcrossPartitions": { "index": 45, "kind": "parameter", 
"displayName": "Max Pending Messages Across Partitions", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "int", 
"deprecated": true, "autowired": false, "secret": false, "defaultValue": 50000, 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"configurationField": "pulsarConfiguration", "description": "The maximum number 
of pending messages [...]
+    "maxPendingMessagesAcrossPartitions": { "index": 45, "kind": "parameter", 
"displayName": "Max Pending Messages Across Partitions", "group": "producer", 
"label": "producer", "required": false, "type": "integer", "javaType": "int", 
"deprecated": true, "deprecationNote": "The Pulsar client deprecates it, as it 
limits the memory used by the pending messages of all the producers of a client 
instead", "autowired": false, "secret": false, "defaultValue": 50000, 
"configurationClass": "org.ap [...]
     "messageRouter": { "index": 46, "kind": "parameter", "displayName": 
"Message Router", "group": "producer", "label": "producer", "required": false, 
"type": "object", "javaType": "org.apache.pulsar.client.api.MessageRouter", 
"deprecated": false, "autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "A custom MessageRouter that chooses the 
partition of a partitioned  [...]
     "messageRoutingMode": { "index": 47, "kind": "parameter", "displayName": 
"Message Routing Mode", "group": "producer", "label": "producer", "required": 
false, "type": "enum", "javaType": 
"org.apache.pulsar.client.api.MessageRoutingMode", "enum": [ "SinglePartition", 
"RoundRobinPartition", "CustomPartition" ], "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": "RoundRobinPartition", 
"configurationClass": "org.apache.camel.component.pulsar.PulsarConfiguration", 
"c [...]
     "producerName": { "index": 48, "kind": "parameter", "displayName": 
"Producer Name", "group": "producer", "label": "producer", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.pulsar.PulsarConfiguration", "configurationField": 
"pulsarConfiguration", "description": "Name of the producer. If unset, lets 
Pulsar select a unique identifier." },
diff --git 
a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarConfiguration.java
 
b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarConfiguration.java
index 178d94e9e604..7ee5554d5ef4 100644
--- 
a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarConfiguration.java
+++ 
b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarConfiguration.java
@@ -51,7 +51,8 @@ public class PulsarConfiguration implements Cloneable {
     @UriParam(label = "common",
               description = "The parameters of the authentication plugin set 
in authenticationClass, as one string in the "
                             + "format that the plugin reads. Only used 
together with authenticationClass, and not when a "
-                            + "pulsarClient is given.")
+                            + "pulsarClient is given.",
+              security = "secret")
     private String authenticationParams;
     @UriParam(label = "security")
     private String tlsTrustCertsFilePath;
@@ -169,11 +170,11 @@ public class PulsarConfiguration implements Cloneable {
               description = "The number of threads that receive and process 
the messages of each consumer, when "
                             + "messageListener is disabled.")
     private int numberOfConsumerThreads = 1;
-    @UriParam(label = "consumer", enums = "AUTO_SPLIT,STICKY",
+    @UriParam(label = "consumer", enums = "AUTO_SPLIT",
               description = "The key shared policy of the consumers, for the 
KEY_SHARED subscription type. AUTO_SPLIT has "
-                            + "the broker split the hash range of the message 
keys over the consumers. STICKY needs hash "
-                            + "ranges assigned to each consumer, which Camel 
does not set, so the Pulsar client rejects it and "
-                            + "the consumer fails to start.")
+                            + "the broker split the hash range of the message 
keys over the consumers. The STICKY policy of "
+                            + "the Pulsar client needs hash ranges assigned to 
each consumer, which Camel does not set, so it "
+                            + "is not supported.")
     private String keySharedPolicy;
     @UriParam(label = "producer", defaultValue = "30000",
               description = "The time in milliseconds within which the broker 
must acknowledge a sent message, otherwise the "
@@ -194,18 +195,20 @@ public class PulsarConfiguration implements Cloneable {
               defaultValue = "50000",
               description = "The maximum number of pending messages across all 
the partitions of a partitioned topic, each "
                             + "partition having its own queue of pending 
messages. The maxPendingMessages value is reduced if "
-                            + "(number of partitions * maxPendingMessages) 
exceeds this value. Must be at least "
-                            + "maxPendingMessages.")
+                            + "(number of partitions * maxPendingMessages) 
exceeds this value. When it is lower than "
+                            + "maxPendingMessages, maxPendingMessages is 
used.")
+    @Metadata(deprecationNote = "The Pulsar client deprecates it, as it limits 
the memory used by the pending messages of"
+                                + " all the producers of a client instead")
     @Deprecated
     private int maxPendingMessagesAcrossPartitions = 50000;
     @UriParam(label = "producer",
               defaultValue = "1000",
               description = "The maximum time in microseconds that the 
producer holds the messages to send them in one "
-                            + "batch, when batchingEnabled is true. Must be at 
least 1000 (1 millisecond).")
+                            + "batch. Only used when batchingEnabled is true, 
and then it must be at least 1000 "
+                            + "(1 millisecond).")
     private long batchingMaxPublishDelayMicros = 
TimeUnit.MILLISECONDS.toMicros(1);
     @UriParam(label = "producer", defaultValue = "1000",
-              description = "The maximum number of messages in a batch. 
Currently not passed to the Pulsar client: the "
-                            + "producer uses the maxPendingMessages value as 
the maximum number of messages in a batch.")
+              description = "The maximum number of messages in a batch, when 
batchingEnabled is true.")
     private int batchingMaxMessages = 1000;
     @UriParam(label = "producer",
               defaultValue = "true",
diff --git 
a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarEndpoint.java
 
b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarEndpoint.java
index d8e1d59d4394..1c9b008e76d9 100644
--- 
a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarEndpoint.java
+++ 
b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarEndpoint.java
@@ -55,6 +55,8 @@ import org.apache.pulsar.client.api.PulsarClient;
 public class PulsarEndpoint extends DefaultEndpoint implements 
EndpointServiceLocation {
 
     private PulsarClient pulsarClient;
+    // whether doStart created the client, so that the endpoint closes it, and 
not a client that was given to it
+    private boolean pulsarClientCreated;
 
     @UriPath(enums = "persistent,non-persistent",
              description = "Whether the topic is persistent (its messages are 
stored by the broker) or non-persistent"
@@ -110,6 +112,8 @@ public class PulsarEndpoint extends DefaultEndpoint 
implements EndpointServiceLo
      */
     public void setPulsarClient(PulsarClient pulsarClient) {
         this.pulsarClient = pulsarClient;
+        // a client that is set belongs to whoever created it, and is not 
closed when the endpoint stops
+        this.pulsarClientCreated = false;
     }
 
     public String getPersistence() {
@@ -184,6 +188,21 @@ public class PulsarEndpoint extends DefaultEndpoint 
implements EndpointServiceLo
             // the Pulsar client does not check the host name in the 
certificate of the broker by default
             builder = 
builder.enableTlsHostnameVerification(pulsarConfiguration.isHostnameVerification());
             pulsarClient = builder.build();
+            pulsarClientCreated = true;
+        }
+    }
+
+    @Override
+    protected void doStop() throws Exception {
+        // close the client this endpoint created, with its threads and broker 
connections; a new one is created if
+        // the endpoint starts again. A client given to the endpoint or the 
component belongs to whoever created it.
+        if (pulsarClientCreated && pulsarClient != null) {
+            try {
+                pulsarClient.close();
+            } finally {
+                pulsarClient = null;
+                pulsarClientCreated = false;
+            }
         }
     }
 
diff --git 
a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java
 
b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java
index ac4e26e0f740..48ecf430bc9f 100644
--- 
a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java
+++ 
b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java
@@ -131,13 +131,19 @@ public class PulsarProducer extends DefaultAsyncProducer {
                         .sendTimeout(configuration.getSendTimeoutMs(), 
TimeUnit.MILLISECONDS)
                         .blockIfQueueFull(configuration.isBlockIfQueueFull())
                         
.maxPendingMessages(configuration.getMaxPendingMessages())
-                        
.maxPendingMessagesAcrossPartitions(configuration.getMaxPendingMessagesAcrossPartitions())
-                        
.batchingMaxPublishDelay(configuration.getBatchingMaxPublishDelayMicros(), 
TimeUnit.MICROSECONDS)
-                        
.batchingMaxMessages(configuration.getMaxPendingMessages())
+                        // the Pulsar client rejects a value below 
maxPendingMessages, which may be raised alone
+                        
.maxPendingMessagesAcrossPartitions(Math.max(configuration.getMaxPendingMessagesAcrossPartitions(),
+                                configuration.getMaxPendingMessages()))
+                        
.batchingMaxMessages(configuration.getBatchingMaxMessages())
                         
.enableBatching(configuration.isBatchingEnabled()).batcherBuilder(configuration.getBatcherBuilder())
                         .compressionType(configuration.getCompressionType())
                         
.hashingScheme(HashingScheme.valueOf(configuration.getHashingScheme()))
                         .enableChunking(configuration.isChunkingEnabled());
+                if (configuration.isBatchingEnabled()) {
+                    // only used for batching, and the Pulsar client rejects a 
delay below 1 millisecond
+                    
producerBuilder.batchingMaxPublishDelay(configuration.getBatchingMaxPublishDelayMicros(),
+                            TimeUnit.MICROSECONDS);
+                }
                 if (ObjectHelper.isNotEmpty(configuration.getMessageRouter())) 
{
                     
producerBuilder.messageRouter(configuration.getMessageRouter());
                 } else {
diff --git 
a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/utils/consumers/CommonCreationStrategyImpl.java
 
b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/utils/consumers/CommonCreationStrategyImpl.java
index 2a042276dbad..b62b8c84e0f9 100644
--- 
a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/utils/consumers/CommonCreationStrategyImpl.java
+++ 
b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/utils/consumers/CommonCreationStrategyImpl.java
@@ -84,11 +84,12 @@ public final class CommonCreationStrategyImpl {
         if (endpointConfiguration.getKeySharedPolicy() != null) {
             if 
("AUTO_SPLIT".equalsIgnoreCase(endpointConfiguration.getKeySharedPolicy())) {
                 builder.keySharedPolicy(KeySharedPolicy.autoSplitHashRange());
-            } else if 
("STICKY".equalsIgnoreCase(endpointConfiguration.getKeySharedPolicy())) {
-                builder.keySharedPolicy(KeySharedPolicy.stickyHashRange());
             } else {
+                // STICKY needs the hash ranges of each consumer, which Camel 
cannot set, so the Pulsar client would
+                // reject it with "Ranges for KeyShared policy must not be 
empty"
                 throw new IllegalArgumentException(
-                        "Unsupported KeySharedPolicy: " + 
endpointConfiguration.getKeySharedPolicy());
+                        "Unsupported keySharedPolicy: " + 
endpointConfiguration.getKeySharedPolicy()
+                                                   + ". Only AUTO_SPLIT is 
supported.");
             }
         }
         if (endpointConfiguration.isTopicsPattern()) {
diff --git 
a/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarEndpointClientLifecycleTest.java
 
b/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarEndpointClientLifecycleTest.java
new file mode 100644
index 000000000000..df42be401863
--- /dev/null
+++ 
b/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarEndpointClientLifecycleTest.java
@@ -0,0 +1,105 @@
+/*
+ * 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.pulsar;
+
+import org.apache.camel.test.junit6.CamelTestSupport;
+import org.apache.pulsar.client.api.PulsarClient;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.verify;
+
+/**
+ * The endpoint closes the PulsarClient it created, with its threads and 
broker connections, when it stops, and not a
+ * client that was given to it.
+ */
+public class PulsarEndpointClientLifecycleTest extends CamelTestSupport {
+
+    private static final String URI = 
"pulsar:persistent://public/default/camel-client-lifecycle";
+
+    @Test
+    public void testTheClientCreatedByTheEndpointIsClosed() throws Exception {
+        // the Pulsar client connects lazily: no broker is needed to build and 
close it
+        PulsarEndpoint endpoint
+                = context.getEndpoint(URI + 
"?serviceUrl=pulsar://localhost:6650", PulsarEndpoint.class);
+        endpoint.start();
+        PulsarClient client = endpoint.getPulsarClient();
+        assertNotNull(client);
+
+        endpoint.stop();
+
+        assertTrue(client.isClosed(), "the client created by the endpoint must 
be closed when it stops");
+        assertNull(endpoint.getPulsarClient());
+    }
+
+    @Test
+    public void testANewClientIsCreatedWhenTheEndpointStartsAgain() throws 
Exception {
+        PulsarEndpoint endpoint
+                = context.getEndpoint(URI + 
"?serviceUrl=pulsar://localhost:6650", PulsarEndpoint.class);
+        endpoint.start();
+        PulsarClient first = endpoint.getPulsarClient();
+        endpoint.stop();
+
+        endpoint.start();
+        try {
+            assertNotNull(endpoint.getPulsarClient());
+            assertNotSame(first, endpoint.getPulsarClient());
+        } finally {
+            endpoint.stop();
+        }
+    }
+
+    @Test
+    public void testAClientGivenToTheComponentIsNotClosed() throws Exception {
+        PulsarClient given = mock(PulsarClient.class);
+        PulsarComponent component = context.getComponent("pulsar", 
PulsarComponent.class);
+        component.setPulsarClient(given);
+
+        PulsarEndpoint endpoint = context.getEndpoint(URI, 
PulsarEndpoint.class);
+        endpoint.start();
+        assertSame(given, endpoint.getPulsarClient());
+
+        endpoint.stop();
+
+        verify(given, never()).close();
+        assertSame(given, endpoint.getPulsarClient());
+    }
+
+    @Test
+    public void testAClientSetWhileTheEndpointRunsIsNotClosed() throws 
Exception {
+        PulsarEndpoint endpoint
+                = context.getEndpoint(URI + 
"?serviceUrl=pulsar://localhost:6650", PulsarEndpoint.class);
+        endpoint.start();
+        PulsarClient created = endpoint.getPulsarClient();
+        PulsarClient given = mock(PulsarClient.class);
+        endpoint.setPulsarClient(given);
+        try {
+            endpoint.stop();
+
+            verify(given, never()).close();
+            assertSame(given, endpoint.getPulsarClient());
+        } finally {
+            created.close();
+        }
+    }
+}
diff --git 
a/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarProducerOptionsTest.java
 
b/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarProducerOptionsTest.java
new file mode 100644
index 000000000000..b57e9bee6167
--- /dev/null
+++ 
b/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarProducerOptionsTest.java
@@ -0,0 +1,135 @@
+/*
+ * 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.pulsar;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.CompletableFuture;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.RoutesBuilder;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.test.junit6.CamelTestSupport;
+import org.apache.pulsar.client.api.MessageId;
+import org.apache.pulsar.client.api.Producer;
+import org.apache.pulsar.client.api.PulsarClient;
+import org.apache.pulsar.client.api.Schema;
+import org.apache.pulsar.client.api.TypedMessageBuilder;
+import org.apache.pulsar.client.impl.ProducerBuilderImpl;
+import org.apache.pulsar.client.impl.conf.ProducerConfigurationData;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.mockito.Answers.RETURNS_SELF;
+import static org.mockito.Mockito.doReturn;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.spy;
+import static org.mockito.Mockito.when;
+
+/**
+ * The options the producer passes to the Pulsar client. The builder is the 
real one of the Pulsar client, which
+ * validates the values as they are set, so a value it rejects makes the 
producer fail to start.
+ */
+public class PulsarProducerOptionsTest extends CamelTestSupport {
+
+    private static final String BATCHING_TOPIC = 
"persistent://public/default/camel-options-batching";
+    private static final String PENDING_TOPIC = 
"persistent://public/default/camel-options-pending";
+    private static final String NO_BATCHING_TOPIC = 
"persistent://public/default/camel-options-no-batching";
+
+    private final List<ProducerBuilderImpl<byte[]>> builders = new 
ArrayList<>();
+
+    private ProducerConfigurationData conf(String topic) {
+        List<ProducerBuilderImpl<byte[]>> matching
+                = builders.stream().filter(builder -> 
topic.equals(builder.getConf().getTopicName())).toList();
+        assertEquals(1, matching.size(), "the producer must have been created 
once");
+        return matching.get(0).getConf();
+    }
+
+    @Test
+    public void testBatchingMaxMessagesIsPassed() {
+        template.sendBody("direct:batching", "Hello");
+
+        ProducerConfigurationData conf = conf(BATCHING_TOPIC);
+        assertEquals(7, conf.getBatchingMaxMessages(), "batchingMaxMessages, 
and not maxPendingMessages");
+        assertEquals(500, conf.getMaxPendingMessages());
+    }
+
+    /**
+     * maxPendingMessages above the default 50000 of 
maxPendingMessagesAcrossPartitions, which the Pulsar client rejects
+     * when it is lower than maxPendingMessages.
+     */
+    @Test
+    public void testMaxPendingMessagesAboveTheAcrossPartitionsDefault() {
+        template.sendBody("direct:pending", "Hello");
+
+        ProducerConfigurationData conf = conf(PENDING_TOPIC);
+        assertEquals(60000, conf.getMaxPendingMessages());
+        assertEquals(60000, conf.getMaxPendingMessagesAcrossPartitions());
+    }
+
+    /**
+     * The batching delay is only used for batching: a delay below 1 
millisecond, which the Pulsar client rejects, does
+     * not matter when batching is disabled.
+     */
+    @Test
+    public void testBatchingDelayIsNotPassedWithoutBatching() {
+        template.sendBody("direct:noBatching", "Hello");
+
+        ProducerConfigurationData conf = conf(NO_BATCHING_TOPIC);
+        assertFalse(conf.isBatchingEnabled());
+    }
+
+    @Override
+    protected CamelContext createCamelContext() throws Exception {
+        final CamelContext context = super.createCamelContext();
+
+        final TypedMessageBuilder<byte[]> messageBuilder = 
mock(TypedMessageBuilder.class, RETURNS_SELF);
+        
when(messageBuilder.sendAsync()).thenReturn(CompletableFuture.completedFuture(mock(MessageId.class)));
+        final Producer<byte[]> pulsarProducer = mock(Producer.class);
+        when(pulsarProducer.newMessage()).thenReturn(messageBuilder);
+
+        final PulsarClient pulsarClient = mock(PulsarClient.class);
+        when(pulsarClient.newProducer()).thenAnswer(invocation -> {
+            // the real builder of the Pulsar client, which validates and 
keeps the configuration
+            final ProducerBuilderImpl<byte[]> builder = spy(new 
ProducerBuilderImpl<>(null, Schema.BYTES));
+            doReturn(pulsarProducer).when(builder).create();
+            builders.add(builder);
+            return builder;
+        });
+
+        final PulsarComponent component = new PulsarComponent(context);
+        component.setPulsarClient(pulsarClient);
+        context.addComponent("pulsar", component);
+        return context;
+    }
+
+    @Override
+    protected RoutesBuilder createRouteBuilder() {
+        return new RouteBuilder() {
+            @Override
+            public void configure() {
+                from("direct:batching")
+                        .to("pulsar:" + BATCHING_TOPIC + 
"?batchingMaxMessages=7&maxPendingMessages=500");
+                from("direct:pending")
+                        .to("pulsar:" + PENDING_TOPIC + 
"?maxPendingMessages=60000");
+                from("direct:noBatching")
+                        .to("pulsar:" + NO_BATCHING_TOPIC + 
"?batchingEnabled=false&batchingMaxPublishDelayMicros=100");
+            }
+        };
+    }
+}
diff --git 
a/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/utils/consumers/CommonCreationStrategyImplTest.java
 
b/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/utils/consumers/CommonCreationStrategyImplTest.java
index f74ffa83967c..c9208afa6672 100644
--- 
a/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/utils/consumers/CommonCreationStrategyImplTest.java
+++ 
b/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/utils/consumers/CommonCreationStrategyImplTest.java
@@ -21,6 +21,7 @@ import org.apache.camel.component.pulsar.PulsarConsumer;
 import org.apache.camel.component.pulsar.PulsarEndpoint;
 import org.apache.pulsar.client.api.ConsumerBuilder;
 import org.apache.pulsar.client.api.DeadLetterPolicy;
+import org.apache.pulsar.client.api.KeySharedMode;
 import org.apache.pulsar.client.api.PulsarClient;
 import org.apache.pulsar.client.impl.ConsumerBuilderImpl;
 import org.apache.pulsar.client.impl.conf.ConsumerConfigurationData;
@@ -32,6 +33,7 @@ import org.junit.jupiter.api.Test;
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
@@ -143,6 +145,25 @@ class CommonCreationStrategyImplTest {
         assertNull(build().getDeadLetterPolicy());
     }
 
+    @Test
+    void autoSplitKeySharedPolicyIsPassed() {
+        configuration.setKeySharedPolicy("AUTO_SPLIT");
+
+        assertEquals(KeySharedMode.AUTO_SPLIT, 
build().getKeySharedPolicy().getKeySharedMode());
+    }
+
+    /**
+     * STICKY needs hash ranges for each consumer, which Camel cannot set: it 
is rejected with a clear message, and not
+     * by the Pulsar client with "Ranges for KeyShared policy must not be 
empty".
+     */
+    @Test
+    void stickyKeySharedPolicyIsRejected() {
+        configuration.setKeySharedPolicy("STICKY");
+
+        IllegalArgumentException e = 
assertThrows(IllegalArgumentException.class, this::build);
+        assertTrue(e.getMessage().contains("Only AUTO_SPLIT is supported"), 
e.getMessage());
+    }
+
     private ConsumerConfigurationData<byte[]> build() {
         ConsumerBuilder<byte[]> builder = 
CommonCreationStrategyImpl.getBuilder("consumer-1", endpoint,
                 mock(PulsarConsumer.class));
diff --git 
a/core/camel-util/src/main/java/org/apache/camel/util/SensitiveUtils.java 
b/core/camel-util/src/main/java/org/apache/camel/util/SensitiveUtils.java
index 85828ee8ce0d..bdf2a2601aec 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/SensitiveUtils.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/SensitiveUtils.java
@@ -53,6 +53,7 @@ public final class SensitiveUtils {
                     "apitoken",
                     "apiuser",
                     "apiusername",
+                    "authenticationparams",
                     "authenticationtoken",
                     "authkey",
                     "authorization",
@@ -212,6 +213,7 @@ public final class SensitiveUtils {
                                                     + "|\\Qapitoken\\E"
                                                     + "|\\Qapiuser\\E"
                                                     + "|\\Qapiusername\\E"
+                                                    + 
"|\\Qauthenticationparams\\E"
                                                     + 
"|\\Qauthenticationtoken\\E"
                                                     + "|\\Qauthkey\\E"
                                                     + "|\\Qauthorization\\E"
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
index 41af1f64a5c5..59bcf6a5762c 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
@@ -875,3 +875,19 @@ returns the first global route configuration.
   characters such as `@`, `:`, `/` and `%` reach the server as they are. If 
you percent-encoded them yourself to
   work around this, for example `password=RAW(p%40ss)` for the password 
`p@ss`, set the plain value now
   (`password=RAW(p@ss)`): an encoded value is encoded again and fails to 
authenticate.
+
+=== camel-pulsar - batchingMaxMessages, keySharedPolicy and the client of the 
endpoint
+
+* The producer now passes `batchingMaxMessages` as the maximum number of 
messages in a batch. Previously it passed
+  `maxPendingMessages`, so a route that changed `maxPendingMessages` also 
changed the batch size. Both default to 1000.
+  To keep the batch size of such a route, set `batchingMaxMessages` to the 
same value, for example
+  `maxPendingMessages=5000&batchingMaxMessages=5000`.
+* `keySharedPolicy=STICKY` is rejected with a clear message when the consumer 
starts. It could never work: the Pulsar
+  client needs hash ranges for each consumer, which Camel does not set, and 
failed with
+  `Ranges for KeyShared policy must not be empty`.
+* `maxPendingMessages` above `maxPendingMessagesAcrossPartitions` (50000 by 
default) no longer makes the producer fail:
+  the larger of the two is passed. `batchingMaxPublishDelayMicros` is passed 
only when `batchingEnabled` is true, so a
+  value below 1000 no longer fails a producer without batching.
+* An endpoint that creates its own `PulsarClient` (from `serviceUrl`, without 
a `pulsarClient`) closes it when the
+  endpoint stops, so its threads and broker connections do not stay. A client 
given to the endpoint or the component
+  is not closed.
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/PulsarComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/PulsarComponentBuilderFactory.java
index c54e17723a94..997e8ca52445 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/PulsarComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/PulsarComponentBuilderFactory.java
@@ -345,9 +345,9 @@ public interface PulsarComponentBuilderFactory {
         /**
          * The key shared policy of the consumers, for the KEY_SHARED
          * subscription type. AUTO_SPLIT has the broker split the hash range of
-         * the message keys over the consumers. STICKY needs hash ranges
-         * assigned to each consumer, which Camel does not set, so the Pulsar
-         * client rejects it and the consumer fails to start.
+         * the message keys over the consumers. The STICKY policy of the Pulsar
+         * client needs hash ranges assigned to each consumer, which Camel does
+         * not set, so it is not supported.
          * 
          * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
          * 
@@ -693,9 +693,8 @@ public interface PulsarComponentBuilderFactory {
     
         
         /**
-         * The maximum number of messages in a batch. Currently not passed to
-         * the Pulsar client: the producer uses the maxPendingMessages value as
-         * the maximum number of messages in a batch.
+         * The maximum number of messages in a batch, when batchingEnabled is
+         * true.
          * 
          * The option is a: &lt;code&gt;int&lt;/code&gt; type.
          * 
@@ -713,8 +712,8 @@ public interface PulsarComponentBuilderFactory {
         
         /**
          * The maximum time in microseconds that the producer holds the 
messages
-         * to send them in one batch, when batchingEnabled is true. Must be at
-         * least 1000 (1 millisecond).
+         * to send them in one batch. Only used when batchingEnabled is true,
+         * and then it must be at least 1000 (1 millisecond).
          * 
          * The option is a: &lt;code&gt;long&lt;/code&gt; type.
          * 
@@ -876,8 +875,10 @@ public interface PulsarComponentBuilderFactory {
          * The maximum number of pending messages across all the partitions of 
a
          * partitioned topic, each partition having its own queue of pending
          * messages. The maxPendingMessages value is reduced if (number of
-         * partitions * maxPendingMessages) exceeds this value. Must be at 
least
-         * maxPendingMessages.
+         * partitions * maxPendingMessages) exceeds this value. When it is 
lower
+         * than maxPendingMessages, maxPendingMessages is used. Deprecation
+         * note: The Pulsar client deprecates it, as it limits the memory used
+         * by the pending messages of all the producers of a client instead.
          * 
          * The option is a: &lt;code&gt;int&lt;/code&gt; type.
          * 
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/PulsarEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/PulsarEndpointBuilderFactory.java
index 2b75b777d253..079c79eb42f0 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/PulsarEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/PulsarEndpointBuilderFactory.java
@@ -399,9 +399,9 @@ public interface PulsarEndpointBuilderFactory {
         /**
          * The key shared policy of the consumers, for the KEY_SHARED
          * subscription type. AUTO_SPLIT has the broker split the hash range of
-         * the message keys over the consumers. STICKY needs hash ranges
-         * assigned to each consumer, which Camel does not set, so the Pulsar
-         * client rejects it and the consumer fails to start.
+         * the message keys over the consumers. The STICKY policy of the Pulsar
+         * client needs hash ranges assigned to each consumer, which Camel does
+         * not set, so it is not supported.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -1191,9 +1191,8 @@ public interface PulsarEndpointBuilderFactory {
             return this;
         }
         /**
-         * The maximum number of messages in a batch. Currently not passed to
-         * the Pulsar client: the producer uses the maxPendingMessages value as
-         * the maximum number of messages in a batch.
+         * The maximum number of messages in a batch, when batchingEnabled is
+         * true.
          * 
          * The option is a: <code>int</code> type.
          * 
@@ -1208,9 +1207,8 @@ public interface PulsarEndpointBuilderFactory {
             return this;
         }
         /**
-         * The maximum number of messages in a batch. Currently not passed to
-         * the Pulsar client: the producer uses the maxPendingMessages value as
-         * the maximum number of messages in a batch.
+         * The maximum number of messages in a batch, when batchingEnabled is
+         * true.
          * 
          * The option will be converted to a <code>int</code> type.
          * 
@@ -1226,8 +1224,8 @@ public interface PulsarEndpointBuilderFactory {
         }
         /**
          * The maximum time in microseconds that the producer holds the 
messages
-         * to send them in one batch, when batchingEnabled is true. Must be at
-         * least 1000 (1 millisecond).
+         * to send them in one batch. Only used when batchingEnabled is true,
+         * and then it must be at least 1000 (1 millisecond).
          * 
          * The option is a: <code>long</code> type.
          * 
@@ -1243,8 +1241,8 @@ public interface PulsarEndpointBuilderFactory {
         }
         /**
          * The maximum time in microseconds that the producer holds the 
messages
-         * to send them in one batch, when batchingEnabled is true. Must be at
-         * least 1000 (1 millisecond).
+         * to send them in one batch. Only used when batchingEnabled is true,
+         * and then it must be at least 1000 (1 millisecond).
          * 
          * The option will be converted to a <code>long</code> type.
          * 
@@ -1453,8 +1451,10 @@ public interface PulsarEndpointBuilderFactory {
          * The maximum number of pending messages across all the partitions of 
a
          * partitioned topic, each partition having its own queue of pending
          * messages. The maxPendingMessages value is reduced if (number of
-         * partitions * maxPendingMessages) exceeds this value. Must be at 
least
-         * maxPendingMessages.
+         * partitions * maxPendingMessages) exceeds this value. When it is 
lower
+         * than maxPendingMessages, maxPendingMessages is used. Deprecation
+         * note: The Pulsar client deprecates it, as it limits the memory used
+         * by the pending messages of all the producers of a client instead.
          * 
          * The option is a: <code>int</code> type.
          * 
@@ -1473,8 +1473,10 @@ public interface PulsarEndpointBuilderFactory {
          * The maximum number of pending messages across all the partitions of 
a
          * partitioned topic, each partition having its own queue of pending
          * messages. The maxPendingMessages value is reduced if (number of
-         * partitions * maxPendingMessages) exceeds this value. Must be at 
least
-         * maxPendingMessages.
+         * partitions * maxPendingMessages) exceeds this value. When it is 
lower
+         * than maxPendingMessages, maxPendingMessages is used. Deprecation
+         * note: The Pulsar client deprecates it, as it limits the memory used
+         * by the pending messages of all the producers of a client instead.
          * 
          * The option will be converted to a <code>int</code> type.
          * 

Reply via email to