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
commit ac24c260044498ef585f67f89795968248c61a3b Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 17:08:10 2026 +0100 CAMEL-23832: camel-amqp - improve the component and option descriptions This commit rewrites the component description and the texts of 12 component options of amqp (brokerUrl, host, port, useTopicPrefix, useSsl, the keystore and truststore options and includeAmqpAnnotations). The new texts say when the component builds its own Qpid JMS connection factory, which options brokerUrl or a connectionFactory make unused, and the defaults. The old includeAmqpAnnotations text said the annotations carry the JMS_AMQP_MA_ prefix: the prefix is added to the header names. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-amqp is marked as done in tasks/component-descriptions.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../org/apache/camel/catalog/components/amqp.json | 26 ++++----- .../apache/camel/catalog/docs/amqp-component.adoc | 2 +- .../org/apache/camel/component/amqp/amqp.json | 26 ++++----- .../camel-amqp/src/main/docs/amqp-component.adoc | 2 +- .../apache/camel/component/amqp/AMQPComponent.java | 55 +++++++++++++------ .../camel/component/amqp/AMQPConfiguration.java | 11 +--- .../apache/camel/component/amqp/AMQPEndpoint.java | 2 +- .../component/ComponentsBuilderFactory.java | 2 +- .../component/dsl/AmqpComponentBuilderFactory.java | 64 +++++++++++++++------- .../builder/endpoint/EndpointHeaderBuilders.java | 2 +- .../builder/endpoint/StaticEndpointBuilders.java | 4 +- .../endpoint/dsl/AMQPEndpointBuilderFactory.java | 11 ++-- tasks/component-descriptions.md | 2 +- 13 files changed, 126 insertions(+), 83 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/amqp.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/amqp.json index 7554efa0e77f..cc5ea514f803 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/amqp.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/amqp.json @@ -3,7 +3,7 @@ "kind": "component", "name": "amqp", "title": "AMQP", - "description": "Messaging with AMQP protocol using Apache Qpid Client.", + "description": "Send and receive messages over AMQP 1.0 with the Apache Qpid JMS client.", "deprecated": false, "firstVersion": "1.2.0", "label": "messaging", @@ -24,24 +24,24 @@ "remote": true }, "componentProperties": { - "brokerUrl": { "index": 0, "kind": "property", "displayName": "Broker Url", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Remote URL to broker. The URL is used to setup connection factory and is broker specific (such as ActiveMQ)." }, + "brokerUrl": { "index": 0, "kind": "property", "displayName": "Broker Url", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The connection URI of the broker in the Qpid JMS format, such as amqp:\/\/localhost:5672, amqps:\/\/broker:5671 or failover:(amqp:\/\/host1:5672,amqp:\/\/host2:5672), with Qpid JMS options in its query. The component creates a Qpid JMS c [...] "cacheConnection": { "index": 1, "kind": "property", "displayName": "Cache Connection", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether the producers send over one shared connection to the broker, when the component creates the connection factory: from brokerUrl, from the host, port, username, password and useSsl options, or with the amq [...] "clientId": { "index": 2, "kind": "property", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Sets the JMS client ID to use. Note that this value, if specified, must be unique and can only be used by a single JMS connecti [...] "connectionFactory": { "index": 3, "kind": "property", "displayName": "Connection Factory", "group": "common", "label": "", "required": false, "type": "object", "javaType": "jakarta.jms.ConnectionFactory", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "The connection factory to be use. A connection factory must be configured either on the componen [...] "disableReplyTo": { "index": 4, "kind": "property", "displayName": "Disable Reply To", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Specifies whether Camel ignores the JMSReplyTo header in messages. If true, Camel does not send a r [...] "durableSubscriptionName": { "index": 5, "kind": "property", "displayName": "Durable Subscription Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "The durable subscriber name for specifying durable topic subscriptions. The clientId option must [...] - "host": { "index": 6, "kind": "property", "displayName": "Host", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name or IP address of the computer that hosts the AMQP Broker." }, - "includeAmqpAnnotations": { "index": 7, "kind": "property", "displayName": "Include AMQP Annotations", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether to include AMQP annotations when mapping from AMQP to Camel Message. Setting this to true maps AMQP message annotations that contain a JMS_AMQP_MA_ prefix to message headers. Due to limit [...] + "host": { "index": 6, "kind": "property", "displayName": "Host", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name or IP address of the AMQP broker, default localhost. The component connects to amqp:\/\/host:port (amqps:\/\/ with useSsl) when neither brokerUrl nor connectionFactory is set." }, + "includeAmqpAnnotations": { "index": 7, "kind": "property", "displayName": "Include AMQP Annotations", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the message annotations of a received AMQP message become message headers, named JMS_AMQP_MA_ followed by the annotation name. The delivery annotations are not mapped, as the Qpid JMS cli [...] "jmsMessageType": { "index": 8, "kind": "property", "displayName": "Jms Message Type", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.jms.JmsMessageType", "enum": [ "Bytes", "Map", "Object", "Stream", "Text" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Allows you to force the use of [...] - "keyStoreLocation": { "index": 9, "kind": "property", "displayName": "Key Store Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The SSL keystore location." }, - "keyStoreType": { "index": 10, "kind": "property", "displayName": "Key Store Type", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "JKS", "description": "The SSL keystore type." }, - "port": { "index": 11, "kind": "property", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "description": "The port number on which the AMPQ Broker listens." }, + "keyStoreLocation": { "index": 9, "kind": "property", "displayName": "Key Store Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the keystore file with the client certificate and key that the client presents to the broker over TLS (the transport.keyStoreLocation option of Qpid JMS). Used only with useSsl. When not set, Qpid JMS uses the [...] + "keyStoreType": { "index": 10, "kind": "property", "displayName": "Key Store Type", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "JKS", "description": "The type of the keystore file, such as JKS or PKCS12. Used only with useSsl and keyStoreLocation." }, + "port": { "index": 11, "kind": "property", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "description": "The port of the AMQP broker, default 5672, also with useSsl. It is used with host when neither brokerUrl nor connectionFactory is set." }, "replyTo": { "index": 12, "kind": "property", "displayName": "Reply To", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Provides an explicit ReplyTo destination (overrides any incoming value of Message.getJMSReplyTo() in consumer)." }, "testConnectionOnStartup": { "index": 13, "kind": "property", "displayName": "Test Connection On Startup", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Specifies whether to test the connection on startup. This ensures that when Cam [...] - "trustStoreLocation": { "index": 14, "kind": "property", "displayName": "Trust Store Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The SSL truststore location." }, - "trustStoreType": { "index": 15, "kind": "property", "displayName": "Trust Store Type", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "JKS", "description": "The SSL truststore type." }, - "useSsl": { "index": 16, "kind": "property", "displayName": "Use Ssl", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to enable SSL when connecting to the AMQP Broker." }, - "useTopicPrefix": { "index": 17, "kind": "property", "displayName": "Use Topic Prefix", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to configure topics with a topic:\/\/ prefix." }, + "trustStoreLocation": { "index": 14, "kind": "property", "displayName": "Trust Store Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the truststore file with the certificates that the client trusts to verify the broker over TLS (the transport.trustStoreLocation option of Qpid JMS). Used only with useSsl. When not set, Qpid JMS uses the [...] + "trustStoreType": { "index": 15, "kind": "property", "displayName": "Trust Store Type", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "JKS", "description": "The type of the truststore file, such as JKS or PKCS12. Used only with useSsl and trustStoreLocation." }, + "useSsl": { "index": 16, "kind": "property", "displayName": "Use Ssl", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether the component connects to the broker over TLS, with an amqps:\/\/ connection URI built from host and port. Only then are the keystore and truststore options used. Not used when brokerUrl or connectionFactory is set." }, + "useTopicPrefix": { "index": 17, "kind": "property", "displayName": "Use Topic Prefix", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether the connection factory that the component creates, from brokerUrl or from host and port, adds the topic:\/\/ prefix to the address of each topic (the topicPrefix option of Qpid JMS). The prefix is added unless this [...] "acknowledgementModeName": { "index": 18, "kind": "property", "displayName": "Acknowledgement Mode Name", "group": "consumer", "label": "consumer", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "SESSION_TRANSACTED", "CLIENT_ACKNOWLEDGE", "AUTO_ACKNOWLEDGE", "DUPS_OK_ACKNOWLEDGE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "AUTO_ACKNOWLEDGE", "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "config [...] "artemisConsumerPriority": { "index": 19, "kind": "property", "displayName": "Artemis Consumer Priority", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Consumer priorities allow you to ensure that high priority consumers receive messages while they [...] "asyncConsumer": { "index": 20, "kind": "property", "displayName": "Async Consumer", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Whether the JmsConsumer processes the Exchange asynchronously. If enabled then the JmsConsu [...] @@ -136,9 +136,9 @@ "errorHandlerLoggingLevel": { "index": 109, "kind": "property", "displayName": "Error Handler Logging Level", "group": "logging", "label": "consumer,logging", "required": false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel", "enum": [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "WARN", "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configura [...] "errorHandlerLogStackTrace": { "index": 110, "kind": "property", "displayName": "Error Handler Log Stack Trace", "group": "logging", "label": "consumer,logging", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Allows to control whether stack-traces should be logged o [...] "deserializationFilter": { "index": 111, "kind": "property", "displayName": "Deserialization Filter", "group": "security", "label": "advanced,security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Sets an ObjectInputFilter pattern (jdk.serialFilter syntax) applied as a defense [...] - "keyStorePassword": { "index": 112, "kind": "property", "displayName": "Key Store Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The SSL keystore password." }, + "keyStorePassword": { "index": 112, "kind": "property", "displayName": "Key Store Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The password of the keystore file. Used only with useSsl and keyStoreLocation." }, "password": { "index": 113, "kind": "property", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Password to use with the ConnectionFactory. You can also configure username\/password directly [...] - "trustStorePassword": { "index": 114, "kind": "property", "displayName": "Trust Store Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The SSL truststore password." }, + "trustStorePassword": { "index": 114, "kind": "property", "displayName": "Trust Store Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The password of the truststore file. Used only with useSsl and trustStoreLocation." }, "username": { "index": 115, "kind": "property", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Username to use with the ConnectionFactory. You can also configure username\/password directly [...] "transacted": { "index": 116, "kind": "property", "displayName": "Transacted", "group": "transaction", "label": "transaction", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Specifies whether to use transacted mode" }, "transactedInOut": { "index": 117, "kind": "property", "displayName": "Transacted In Out", "group": "transaction", "label": "transaction", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Specifies whether InOut operations (request reply) default to using transacted [...] diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/amqp-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/amqp-component.adoc index 4db731d251a5..12d2c028c4db 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/amqp-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/amqp-component.adoc @@ -2,7 +2,7 @@ :doctitle: AMQP :shortname: amqp :artifactid: camel-amqp -:description: Messaging with AMQP protocol using Apache Qpid Client. +:description: Send and receive messages over AMQP 1.0 with the Apache Qpid JMS client. :since: 1.2 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-amqp/src/generated/resources/META-INF/org/apache/camel/component/amqp/amqp.json b/components/camel-amqp/src/generated/resources/META-INF/org/apache/camel/component/amqp/amqp.json index 7554efa0e77f..cc5ea514f803 100644 --- a/components/camel-amqp/src/generated/resources/META-INF/org/apache/camel/component/amqp/amqp.json +++ b/components/camel-amqp/src/generated/resources/META-INF/org/apache/camel/component/amqp/amqp.json @@ -3,7 +3,7 @@ "kind": "component", "name": "amqp", "title": "AMQP", - "description": "Messaging with AMQP protocol using Apache Qpid Client.", + "description": "Send and receive messages over AMQP 1.0 with the Apache Qpid JMS client.", "deprecated": false, "firstVersion": "1.2.0", "label": "messaging", @@ -24,24 +24,24 @@ "remote": true }, "componentProperties": { - "brokerUrl": { "index": 0, "kind": "property", "displayName": "Broker Url", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Remote URL to broker. The URL is used to setup connection factory and is broker specific (such as ActiveMQ)." }, + "brokerUrl": { "index": 0, "kind": "property", "displayName": "Broker Url", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The connection URI of the broker in the Qpid JMS format, such as amqp:\/\/localhost:5672, amqps:\/\/broker:5671 or failover:(amqp:\/\/host1:5672,amqp:\/\/host2:5672), with Qpid JMS options in its query. The component creates a Qpid JMS c [...] "cacheConnection": { "index": 1, "kind": "property", "displayName": "Cache Connection", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether the producers send over one shared connection to the broker, when the component creates the connection factory: from brokerUrl, from the host, port, username, password and useSsl options, or with the amq [...] "clientId": { "index": 2, "kind": "property", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Sets the JMS client ID to use. Note that this value, if specified, must be unique and can only be used by a single JMS connecti [...] "connectionFactory": { "index": 3, "kind": "property", "displayName": "Connection Factory", "group": "common", "label": "", "required": false, "type": "object", "javaType": "jakarta.jms.ConnectionFactory", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "The connection factory to be use. A connection factory must be configured either on the componen [...] "disableReplyTo": { "index": 4, "kind": "property", "displayName": "Disable Reply To", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Specifies whether Camel ignores the JMSReplyTo header in messages. If true, Camel does not send a r [...] "durableSubscriptionName": { "index": 5, "kind": "property", "displayName": "Durable Subscription Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "The durable subscriber name for specifying durable topic subscriptions. The clientId option must [...] - "host": { "index": 6, "kind": "property", "displayName": "Host", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name or IP address of the computer that hosts the AMQP Broker." }, - "includeAmqpAnnotations": { "index": 7, "kind": "property", "displayName": "Include AMQP Annotations", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether to include AMQP annotations when mapping from AMQP to Camel Message. Setting this to true maps AMQP message annotations that contain a JMS_AMQP_MA_ prefix to message headers. Due to limit [...] + "host": { "index": 6, "kind": "property", "displayName": "Host", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name or IP address of the AMQP broker, default localhost. The component connects to amqp:\/\/host:port (amqps:\/\/ with useSsl) when neither brokerUrl nor connectionFactory is set." }, + "includeAmqpAnnotations": { "index": 7, "kind": "property", "displayName": "Include AMQP Annotations", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the message annotations of a received AMQP message become message headers, named JMS_AMQP_MA_ followed by the annotation name. The delivery annotations are not mapped, as the Qpid JMS cli [...] "jmsMessageType": { "index": 8, "kind": "property", "displayName": "Jms Message Type", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.jms.JmsMessageType", "enum": [ "Bytes", "Map", "Object", "Stream", "Text" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Allows you to force the use of [...] - "keyStoreLocation": { "index": 9, "kind": "property", "displayName": "Key Store Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The SSL keystore location." }, - "keyStoreType": { "index": 10, "kind": "property", "displayName": "Key Store Type", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "JKS", "description": "The SSL keystore type." }, - "port": { "index": 11, "kind": "property", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "description": "The port number on which the AMPQ Broker listens." }, + "keyStoreLocation": { "index": 9, "kind": "property", "displayName": "Key Store Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the keystore file with the client certificate and key that the client presents to the broker over TLS (the transport.keyStoreLocation option of Qpid JMS). Used only with useSsl. When not set, Qpid JMS uses the [...] + "keyStoreType": { "index": 10, "kind": "property", "displayName": "Key Store Type", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "JKS", "description": "The type of the keystore file, such as JKS or PKCS12. Used only with useSsl and keyStoreLocation." }, + "port": { "index": 11, "kind": "property", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "description": "The port of the AMQP broker, default 5672, also with useSsl. It is used with host when neither brokerUrl nor connectionFactory is set." }, "replyTo": { "index": 12, "kind": "property", "displayName": "Reply To", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Provides an explicit ReplyTo destination (overrides any incoming value of Message.getJMSReplyTo() in consumer)." }, "testConnectionOnStartup": { "index": 13, "kind": "property", "displayName": "Test Connection On Startup", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Specifies whether to test the connection on startup. This ensures that when Cam [...] - "trustStoreLocation": { "index": 14, "kind": "property", "displayName": "Trust Store Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The SSL truststore location." }, - "trustStoreType": { "index": 15, "kind": "property", "displayName": "Trust Store Type", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "JKS", "description": "The SSL truststore type." }, - "useSsl": { "index": 16, "kind": "property", "displayName": "Use Ssl", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to enable SSL when connecting to the AMQP Broker." }, - "useTopicPrefix": { "index": 17, "kind": "property", "displayName": "Use Topic Prefix", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to configure topics with a topic:\/\/ prefix." }, + "trustStoreLocation": { "index": 14, "kind": "property", "displayName": "Trust Store Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the truststore file with the certificates that the client trusts to verify the broker over TLS (the transport.trustStoreLocation option of Qpid JMS). Used only with useSsl. When not set, Qpid JMS uses the [...] + "trustStoreType": { "index": 15, "kind": "property", "displayName": "Trust Store Type", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "JKS", "description": "The type of the truststore file, such as JKS or PKCS12. Used only with useSsl and trustStoreLocation." }, + "useSsl": { "index": 16, "kind": "property", "displayName": "Use Ssl", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether the component connects to the broker over TLS, with an amqps:\/\/ connection URI built from host and port. Only then are the keystore and truststore options used. Not used when brokerUrl or connectionFactory is set." }, + "useTopicPrefix": { "index": 17, "kind": "property", "displayName": "Use Topic Prefix", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether the connection factory that the component creates, from brokerUrl or from host and port, adds the topic:\/\/ prefix to the address of each topic (the topicPrefix option of Qpid JMS). The prefix is added unless this [...] "acknowledgementModeName": { "index": 18, "kind": "property", "displayName": "Acknowledgement Mode Name", "group": "consumer", "label": "consumer", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "SESSION_TRANSACTED", "CLIENT_ACKNOWLEDGE", "AUTO_ACKNOWLEDGE", "DUPS_OK_ACKNOWLEDGE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "AUTO_ACKNOWLEDGE", "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "config [...] "artemisConsumerPriority": { "index": 19, "kind": "property", "displayName": "Artemis Consumer Priority", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Consumer priorities allow you to ensure that high priority consumers receive messages while they [...] "asyncConsumer": { "index": 20, "kind": "property", "displayName": "Async Consumer", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Whether the JmsConsumer processes the Exchange asynchronously. If enabled then the JmsConsu [...] @@ -136,9 +136,9 @@ "errorHandlerLoggingLevel": { "index": 109, "kind": "property", "displayName": "Error Handler Logging Level", "group": "logging", "label": "consumer,logging", "required": false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel", "enum": [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "WARN", "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configura [...] "errorHandlerLogStackTrace": { "index": 110, "kind": "property", "displayName": "Error Handler Log Stack Trace", "group": "logging", "label": "consumer,logging", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Allows to control whether stack-traces should be logged o [...] "deserializationFilter": { "index": 111, "kind": "property", "displayName": "Deserialization Filter", "group": "security", "label": "advanced,security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Sets an ObjectInputFilter pattern (jdk.serialFilter syntax) applied as a defense [...] - "keyStorePassword": { "index": 112, "kind": "property", "displayName": "Key Store Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The SSL keystore password." }, + "keyStorePassword": { "index": 112, "kind": "property", "displayName": "Key Store Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The password of the keystore file. Used only with useSsl and keyStoreLocation." }, "password": { "index": 113, "kind": "property", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Password to use with the ConnectionFactory. You can also configure username\/password directly [...] - "trustStorePassword": { "index": 114, "kind": "property", "displayName": "Trust Store Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The SSL truststore password." }, + "trustStorePassword": { "index": 114, "kind": "property", "displayName": "Trust Store Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The password of the truststore file. Used only with useSsl and trustStoreLocation." }, "username": { "index": 115, "kind": "property", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Username to use with the ConnectionFactory. You can also configure username\/password directly [...] "transacted": { "index": 116, "kind": "property", "displayName": "Transacted", "group": "transaction", "label": "transaction", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Specifies whether to use transacted mode" }, "transactedInOut": { "index": 117, "kind": "property", "displayName": "Transacted In Out", "group": "transaction", "label": "transaction", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.jms.JmsConfiguration", "configurationField": "configuration", "description": "Specifies whether InOut operations (request reply) default to using transacted [...] diff --git a/components/camel-amqp/src/main/docs/amqp-component.adoc b/components/camel-amqp/src/main/docs/amqp-component.adoc index 4db731d251a5..12d2c028c4db 100644 --- a/components/camel-amqp/src/main/docs/amqp-component.adoc +++ b/components/camel-amqp/src/main/docs/amqp-component.adoc @@ -2,7 +2,7 @@ :doctitle: AMQP :shortname: amqp :artifactid: camel-amqp -:description: Messaging with AMQP protocol using Apache Qpid Client. +:description: Send and receive messages over AMQP 1.0 with the Apache Qpid JMS client. :since: 1.2 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPComponent.java b/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPComponent.java index b926072ea807..2fff0bd044b3 100644 --- a/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPComponent.java +++ b/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPComponent.java @@ -39,7 +39,7 @@ import org.springframework.jms.connection.CachingConnectionFactory; import org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter; /** - * Messaging with AMQP protocol using Apache Qpid Client. + * Send and receive messages over AMQP 1.0 with the Apache Qpid JMS client. */ @Component("amqp") public class AMQPComponent extends JmsComponent { @@ -49,27 +49,48 @@ public class AMQPComponent extends JmsComponent { public static final String AMQP_DEFAULT_HOST = "localhost"; public static final int AMQP_DEFAULT_PORT = 5672; - @Metadata(description = "Remote URL to broker. The URL is used to setup connection factory and is broker specific (such as ActiveMQ).") + @Metadata(description = "The connection URI of the broker in the Qpid JMS format, such as amqp://localhost:5672," + + " amqps://broker:5671 or failover:(amqp://host1:5672,amqp://host2:5672), with Qpid JMS options" + + " in its query. The component creates a Qpid JMS connection factory from it, which replaces the" + + " connectionFactory of the component. The host, port, useSsl, keystore and truststore options are" + + " then not used.") private String brokerUrl; - @Metadata(description = "The host name or IP address of the computer that hosts the AMQP Broker.") + @Metadata(description = "The host name or IP address of the AMQP broker, default localhost. The component connects to" + + " amqp://host:port (amqps:// with useSsl) when neither brokerUrl nor connectionFactory is set.") private String host; - @Metadata(description = "The port number on which the AMPQ Broker listens.") + @Metadata(description = "The port of the AMQP broker, default 5672, also with useSsl. It is used with host when neither" + + " brokerUrl nor connectionFactory is set.") private Integer port; - @Metadata(description = "Whether to configure topics with a `topic://` prefix.") + @Metadata(description = "Whether the connection factory that the component creates, from brokerUrl or from host and" + + " port, adds the topic:// prefix to the address of each topic (the topicPrefix option of Qpid" + + " JMS). The prefix is added unless this is false. A connectionFactory that you set yourself is" + + " not changed.") private Boolean useTopicPrefix; - @Metadata(description = "Whether to enable SSL when connecting to the AMQP Broker.") + @Metadata(description = "Whether the component connects to the broker over TLS, with an amqps:// connection URI built" + + " from host and port. Only then are the keystore and truststore options used. Not used when" + + " brokerUrl or connectionFactory is set.") private Boolean useSsl; - @Metadata(description = "The SSL keystore location.") + @Metadata(description = "The path of the keystore file with the client certificate and key that the client presents to" + + " the broker over TLS (the transport.keyStoreLocation option of Qpid JMS). Used only with useSsl." + + " When not set, Qpid JMS uses the javax.net.ssl.keyStore system property.") private String keyStoreLocation; - @Metadata(defaultValue = "JKS", description = "The SSL keystore type.") + @Metadata(defaultValue = "JKS", + description = "The type of the keystore file, such as JKS or PKCS12. Used only with useSsl and" + + " keyStoreLocation.") private String keyStoreType = "JKS"; - @Metadata(label = "security", security = "secret", description = "The SSL keystore password.") + @Metadata(label = "security", security = "secret", + description = "The password of the keystore file. Used only with useSsl and keyStoreLocation.") private String keyStorePassword; - @Metadata(description = "The SSL truststore location.") + @Metadata(description = "The path of the truststore file with the certificates that the client trusts to verify the" + + " broker over TLS (the transport.trustStoreLocation option of Qpid JMS). Used only with useSsl." + + " When not set, Qpid JMS uses the javax.net.ssl.trustStore system property.") private String trustStoreLocation; - @Metadata(defaultValue = "JKS", description = "The SSL truststore type.") + @Metadata(defaultValue = "JKS", + description = "The type of the truststore file, such as JKS or PKCS12. Used only with useSsl and" + + " trustStoreLocation.") private String trustStoreType = "JKS"; - @Metadata(label = "security", security = "secret", description = "The SSL truststore password.") + @Metadata(label = "security", security = "secret", + description = "The password of the truststore file. Used only with useSsl and trustStoreLocation.") private String trustStorePassword; @Metadata(defaultValue = "true", description = "Whether the producers send over one shared connection to the broker, when the component creates" @@ -255,12 +276,10 @@ public class AMQPComponent extends JmsComponent { // Properties - /** - * Whether to include AMQP annotations when mapping from AMQP to Camel Message. Setting this to true maps AMQP - * message annotations that contain a JMS_AMQP_MA_ prefix to message headers. Due to limitations in Apache Qpid JMS - * API, currently delivery annotations are ignored. - */ - @Metadata(displayName = "Include AMQP Annotations") + @Metadata(displayName = "Include AMQP Annotations", + description = "Whether the message annotations of a received AMQP message become message headers, named" + + " JMS_AMQP_MA_ followed by the annotation name. The delivery annotations are not mapped, as the" + + " Qpid JMS client gives no access to them.") public void setIncludeAmqpAnnotations(boolean includeAmqpAnnotations) { if (getConfiguration() instanceof AMQPConfiguration amqpConfiguration) { amqpConfiguration.setIncludeAmqpAnnotations(includeAmqpAnnotations); diff --git a/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPConfiguration.java b/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPConfiguration.java index 0d4534aa21cb..51870ff2df21 100644 --- a/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPConfiguration.java +++ b/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPConfiguration.java @@ -28,9 +28,9 @@ import org.apache.camel.spi.UriParams; public class AMQPConfiguration extends JmsConfiguration { @UriParam(label = "consumer,advanced", - description = "Whether to include AMQP annotations when mapping from AMQP to Camel Message." - + " Setting this to true maps AMQP message annotations that contain a JMS_AMQP_MA_ prefix to message headers." - + " Due to limitations in Apache Qpid JMS API, currently delivery annotations are ignored.") + description = "Whether the message annotations of a received AMQP message become message headers, named" + + " JMS_AMQP_MA_ followed by the annotation name. The delivery annotations are not mapped, as the" + + " Qpid JMS client gives no access to them.") private boolean includeAmqpAnnotations; // set by AMQPComponent when it creates the connection factory, see AMQPComponent#setCacheConnection @@ -48,11 +48,6 @@ public class AMQPConfiguration extends JmsConfiguration { return includeAmqpAnnotations; } - /** - * Whether to include AMQP annotations when mapping from AMQP to Camel Message. Setting this to true maps AMQP - * message annotations that contain a JMS_AMQP_MA_ prefix to message headers. Due to limitations in Apache Qpid JMS - * API, currently delivery annotations are ignored. - */ public void setIncludeAmqpAnnotations(boolean includeAmqpAnnotations) { this.includeAmqpAnnotations = includeAmqpAnnotations; } diff --git a/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPEndpoint.java b/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPEndpoint.java index 4216a71c9529..34f931009679 100644 --- a/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPEndpoint.java +++ b/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/AMQPEndpoint.java @@ -24,7 +24,7 @@ import org.apache.camel.spi.BodyTypes; import org.apache.camel.spi.UriEndpoint; /** - * Messaging with AMQP protocol using Apache Qpid Client. + * Send and receive messages over AMQP 1.0 with the Apache Qpid JMS client. * * This class extends JmsEndpoint because it uses Apache Qpid JMS-compatible client for performing the AMQP * connectivity. diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index 1ec9c074107c..7014d58ccdb0 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -238,7 +238,7 @@ public interface ComponentsBuilderFactory { } /** * AMQP (camel-amqp) - * Messaging with AMQP protocol using Apache Qpid Client. + * Send and receive messages over AMQP 1.0 with the Apache Qpid JMS client. * * Category: messaging * Since: 1.2 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AmqpComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AmqpComponentBuilderFactory.java index 17ccf8dd2e4e..3bc40e83156e 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AmqpComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AmqpComponentBuilderFactory.java @@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.amqp.AMQPComponent; /** - * Messaging with AMQP protocol using Apache Qpid Client. + * Send and receive messages over AMQP 1.0 with the Apache Qpid JMS client. * * Generated by camel build tools - do NOT edit this file! */ @@ -33,7 +33,7 @@ public interface AmqpComponentBuilderFactory { /** * AMQP (camel-amqp) - * Messaging with AMQP protocol using Apache Qpid Client. + * Send and receive messages over AMQP 1.0 with the Apache Qpid JMS client. * * Category: messaging * Since: 1.2 @@ -51,8 +51,13 @@ public interface AmqpComponentBuilderFactory { interface AmqpComponentBuilder extends ComponentBuilder<AMQPComponent> { /** - * Remote URL to broker. The URL is used to setup connection factory and - * is broker specific (such as ActiveMQ). + * The connection URI of the broker in the Qpid JMS format, such as + * amqp://localhost:5672, amqps://broker:5671 or + * failover:(amqp://host1:5672,amqp://host2:5672), with Qpid JMS options + * in its query. The component creates a Qpid JMS connection factory + * from it, which replaces the connectionFactory of the component. The + * host, port, useSsl, keystore and truststore options are then not + * used. * * The option is a: <code>java.lang.String</code> type. * @@ -165,8 +170,9 @@ public interface AmqpComponentBuilderFactory { } /** - * The host name or IP address of the computer that hosts the AMQP - * Broker. + * The host name or IP address of the AMQP broker, default localhost. + * The component connects to amqp://host:port (amqps:// with useSsl) + * when neither brokerUrl nor connectionFactory is set. * * The option is a: <code>java.lang.String</code> type. * @@ -182,10 +188,10 @@ public interface AmqpComponentBuilderFactory { /** - * Whether to include AMQP annotations when mapping from AMQP to Camel - * Message. Setting this to true maps AMQP message annotations that - * contain a JMS_AMQP_MA_ prefix to message headers. Due to limitations - * in Apache Qpid JMS API, currently delivery annotations are ignored. + * Whether the message annotations of a received AMQP message become + * message headers, named JMS_AMQP_MA_ followed by the annotation name. + * The delivery annotations are not mapped, as the Qpid JMS client gives + * no access to them. * * The option is a: <code>boolean</code> type. * @@ -224,7 +230,11 @@ public interface AmqpComponentBuilderFactory { } /** - * The SSL keystore location. + * The path of the keystore file with the client certificate and key + * that the client presents to the broker over TLS (the + * transport.keyStoreLocation option of Qpid JMS). Used only with + * useSsl. When not set, Qpid JMS uses the javax.net.ssl.keyStore system + * property. * * The option is a: <code>java.lang.String</code> type. * @@ -240,7 +250,8 @@ public interface AmqpComponentBuilderFactory { /** - * The SSL keystore type. + * The type of the keystore file, such as JKS or PKCS12. Used only with + * useSsl and keyStoreLocation. * * The option is a: <code>java.lang.String</code> type. * @@ -256,7 +267,8 @@ public interface AmqpComponentBuilderFactory { } /** - * The port number on which the AMPQ Broker listens. + * The port of the AMQP broker, default 5672, also with useSsl. It is + * used with host when neither brokerUrl nor connectionFactory is set. * * The option is a: <code>java.lang.Integer</code> type. * @@ -308,7 +320,11 @@ public interface AmqpComponentBuilderFactory { } /** - * The SSL truststore location. + * The path of the truststore file with the certificates that the client + * trusts to verify the broker over TLS (the + * transport.trustStoreLocation option of Qpid JMS). Used only with + * useSsl. When not set, Qpid JMS uses the javax.net.ssl.trustStore + * system property. * * The option is a: <code>java.lang.String</code> type. * @@ -324,7 +340,8 @@ public interface AmqpComponentBuilderFactory { /** - * The SSL truststore type. + * The type of the truststore file, such as JKS or PKCS12. Used only + * with useSsl and trustStoreLocation. * * The option is a: <code>java.lang.String</code> type. * @@ -340,7 +357,10 @@ public interface AmqpComponentBuilderFactory { } /** - * Whether to enable SSL when connecting to the AMQP Broker. + * Whether the component connects to the broker over TLS, with an + * amqps:// connection URI built from host and port. Only then are the + * keystore and truststore options used. Not used when brokerUrl or + * connectionFactory is set. * * The option is a: <code>java.lang.Boolean</code> type. * @@ -355,7 +375,11 @@ public interface AmqpComponentBuilderFactory { } /** - * Whether to configure topics with a topic:// prefix. + * Whether the connection factory that the component creates, from + * brokerUrl or from host and port, adds the topic:// prefix to the + * address of each topic (the topicPrefix option of Qpid JMS). The + * prefix is added unless this is false. A connectionFactory that you + * set yourself is not changed. * * The option is a: <code>java.lang.Boolean</code> type. * @@ -2306,7 +2330,8 @@ public interface AmqpComponentBuilderFactory { } /** - * The SSL keystore password. + * The password of the keystore file. Used only with useSsl and + * keyStoreLocation. * * The option is a: <code>java.lang.String</code> type. * @@ -2337,7 +2362,8 @@ public interface AmqpComponentBuilderFactory { } /** - * The SSL truststore password. + * The password of the truststore file. Used only with useSsl and + * trustStoreLocation. * * The option is a: <code>java.lang.String</code> type. * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java index 034ec1eefa9b..3a0864b71ffd 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java @@ -217,7 +217,7 @@ public class EndpointHeaderBuilders { } /** * AMQP (camel-amqp) - * Messaging with AMQP protocol using Apache Qpid Client. + * Send and receive messages over AMQP 1.0 with the Apache Qpid JMS client. * * Category: messaging * Since: 1.2 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index 347b859411e5..86ee66a5397b 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -722,7 +722,7 @@ public class StaticEndpointBuilders { } /** * AMQP (camel-amqp) - * Messaging with AMQP protocol using Apache Qpid Client. + * Send and receive messages over AMQP 1.0 with the Apache Qpid JMS client. * * Category: messaging * Since: 1.2 @@ -747,7 +747,7 @@ public class StaticEndpointBuilders { } /** * AMQP (camel-amqp) - * Messaging with AMQP protocol using Apache Qpid Client. + * Send and receive messages over AMQP 1.0 with the Apache Qpid JMS client. * * Category: messaging * Since: 1.2 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AMQPEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AMQPEndpointBuilderFactory.java index fecbf97db7ca..8c42a42867b8 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AMQPEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AMQPEndpointBuilderFactory.java @@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Messaging with AMQP protocol using Apache Qpid Client. + * Send and receive messages over AMQP 1.0 with the Apache Qpid JMS client. * * Generated by camel build tools - do NOT edit this file! */ @@ -7241,7 +7241,8 @@ public interface AMQPEndpointBuilderFactory { public interface AMQPBuilders { /** * AMQP (camel-amqp) - * Messaging with AMQP protocol using Apache Qpid Client. + * Send and receive messages over AMQP 1.0 with the Apache Qpid JMS + * client. * * Category: messaging * Since: 1.2 @@ -7254,7 +7255,8 @@ public interface AMQPEndpointBuilderFactory { } /** * AMQP (camel-amqp) - * Messaging with AMQP protocol using Apache Qpid Client. + * Send and receive messages over AMQP 1.0 with the Apache Qpid JMS + * client. * * Category: messaging * Since: 1.2 @@ -7279,7 +7281,8 @@ public interface AMQPEndpointBuilderFactory { } /** * AMQP (camel-amqp) - * Messaging with AMQP protocol using Apache Qpid Client. + * Send and receive messages over AMQP 1.0 with the Apache Qpid JMS + * client. * * Category: messaging * Since: 1.2 diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index 5553d10434e3..c1f8056070c4 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -66,7 +66,7 @@ or removes its row. | camel-alibaba-ots | alibaba-ots | yes | | camel-alibaba-sls | alibaba-sls | yes | | camel-alibaba-sms | alibaba-sms | yes | -| camel-amqp | amqp | | +| camel-amqp | amqp | yes | | camel-apicurio-registry | apicurio-registry | | | camel-arangodb | arangodb | yes | | camel-as2 | as2 | |
