You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/01/12 11:18:29 UTC

[camel-spring-boot] branch master updated (3ecf47e -> ef6a5ba)

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

davsclaus pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git.


    from 3ecf47e  CAMEL-16003: camel-spring-rabbitmq - New component using spring client
     new d9313e2  Regen
     new ef6a5ba  Polished

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 components-starter/README.adoc                                       | 4 +++-
 components-starter/camel-spring-rabbitmq-starter/pom.xml             | 3 +--
 docs/modules/ROOT/pages/list.adoc                                    | 4 +++-
 .../docs => docs/modules/ROOT/pages}/spring-rabbitmq-starter.adoc    | 0
 tooling/camel-spring-boot-bom/pom.xml                                | 5 +++++
 tooling/camel-spring-boot-dependencies/pom.xml                       | 5 +++++
 6 files changed, 17 insertions(+), 4 deletions(-)
 copy {components-starter/camel-spring-rabbitmq-starter/src/main/docs => docs/modules/ROOT/pages}/spring-rabbitmq-starter.adoc (100%)


[camel-spring-boot] 02/02: Polished

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit ef6a5ba46e101a6be6ef0a09a3235f5882dc24d9
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Jan 12 12:18:13 2021 +0100

    Polished
---
 components-starter/camel-spring-rabbitmq-starter/pom.xml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/components-starter/camel-spring-rabbitmq-starter/pom.xml b/components-starter/camel-spring-rabbitmq-starter/pom.xml
index 1778824..e6340f9 100644
--- a/components-starter/camel-spring-rabbitmq-starter/pom.xml
+++ b/components-starter/camel-spring-rabbitmq-starter/pom.xml
@@ -26,8 +26,7 @@
   </parent>
   <artifactId>camel-spring-rabbitmq-starter</artifactId>
   <packaging>jar</packaging>
-  <!--    <name>Camel Spring Boot :: Starters :: Dozer</name>-->
-  <!--    <description>Spring-Boot Starter for Camel Support for the Dozer type conversion framework</description>-->
+  <name>Camel SB Starters :: Spring RabbitMQ</name>
   <dependencies>
     <dependency>
       <groupId>org.springframework.boot</groupId>


[camel-spring-boot] 01/02: Regen

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit d9313e2f52ff67f903d64e758b3f78d90b8c268b
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Jan 12 12:16:59 2021 +0100

    Regen
---
 components-starter/README.adoc                     |  4 +-
 docs/modules/ROOT/pages/list.adoc                  |  4 +-
 .../ROOT/pages/spring-rabbitmq-starter.adoc        | 50 ++++++++++++++++++++++
 tooling/camel-spring-boot-bom/pom.xml              |  5 +++
 tooling/camel-spring-boot-dependencies/pom.xml     |  5 +++
 5 files changed, 66 insertions(+), 2 deletions(-)

diff --git a/components-starter/README.adoc b/components-starter/README.adoc
index 7c142d2..387ad2b 100644
--- a/components-starter/README.adoc
+++ b/components-starter/README.adoc
@@ -5,7 +5,7 @@ Apache Camel Spring Boot supports the following Camel artifacts as Spring Boot S
 == Camel Components
 
 // components: START
-Number of Camel components: 341 in 274 JAR artifacts (3 deprecated)
+Number of Camel components: 342 in 275 JAR artifacts (3 deprecated)
 
 [width="100%",cols="4,3,3,3,6",options="header"]
 |===
@@ -605,6 +605,8 @@ Number of Camel components: 341 in 274 JAR artifacts (3 deprecated)
 
 | xref:latest@components::spring-ldap-component.adoc[Spring LDAP] | camel-spring-ldap-starter | Stable | 2.11 | Perform searches in LDAP servers using filters as the message payload.
 
+| xref:latest@components::spring-rabbitmq-component.adoc[Spring RabbitMQ] | camel-spring-rabbitmq-starter | Preview | 3.8 | Send and receive messages from RabbitMQ using Spring RabbitMQ client.
+
 | xref:latest@components::spring-redis-component.adoc[Spring Redis] | camel-spring-redis-starter | Stable | 2.11 | Send and receive messages from Redis.
 
 | xref:latest@components::spring-ws-component.adoc[Spring WebService] | camel-spring-ws-starter | Stable | 2.6 | Access external web services as a client or expose your own web services.
diff --git a/docs/modules/ROOT/pages/list.adoc b/docs/modules/ROOT/pages/list.adoc
index 7c142d2..387ad2b 100644
--- a/docs/modules/ROOT/pages/list.adoc
+++ b/docs/modules/ROOT/pages/list.adoc
@@ -5,7 +5,7 @@ Apache Camel Spring Boot supports the following Camel artifacts as Spring Boot S
 == Camel Components
 
 // components: START
-Number of Camel components: 341 in 274 JAR artifacts (3 deprecated)
+Number of Camel components: 342 in 275 JAR artifacts (3 deprecated)
 
 [width="100%",cols="4,3,3,3,6",options="header"]
 |===
@@ -605,6 +605,8 @@ Number of Camel components: 341 in 274 JAR artifacts (3 deprecated)
 
 | xref:latest@components::spring-ldap-component.adoc[Spring LDAP] | camel-spring-ldap-starter | Stable | 2.11 | Perform searches in LDAP servers using filters as the message payload.
 
+| xref:latest@components::spring-rabbitmq-component.adoc[Spring RabbitMQ] | camel-spring-rabbitmq-starter | Preview | 3.8 | Send and receive messages from RabbitMQ using Spring RabbitMQ client.
+
 | xref:latest@components::spring-redis-component.adoc[Spring Redis] | camel-spring-redis-starter | Stable | 2.11 | Send and receive messages from Redis.
 
 | xref:latest@components::spring-ws-component.adoc[Spring WebService] | camel-spring-ws-starter | Stable | 2.6 | Access external web services as a client or expose your own web services.
diff --git a/docs/modules/ROOT/pages/spring-rabbitmq-starter.adoc b/docs/modules/ROOT/pages/spring-rabbitmq-starter.adoc
new file mode 100644
index 0000000..391db70
--- /dev/null
+++ b/docs/modules/ROOT/pages/spring-rabbitmq-starter.adoc
@@ -0,0 +1,50 @@
+// spring-boot-auto-configure options: START
+:page-partial:
+:doctitle: Camel Spring Boot Starter for spring-rabbitmq
+
+== Spring Boot Auto-Configuration
+
+When using spring-rabbitmq with Spring Boot make sure to use the following Maven dependency to have support for auto configuration:
+
+[source,xml]
+----
+<dependency>
+  <groupId>org.apache.camel.springboot</groupId>
+  <artifactId>camel-spring-rabbitmq-starter</artifactId>
+  <version>x.x.x</version>
+  <!-- use the same version as your Camel core version -->
+</dependency>
+----
+
+
+The component supports 20 options, which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|===
+| Name | Description | Default | Type
+| *camel.component.spring-rabbitmq.amqp-admin* | Optional AMQP Admin service to use for auto declaring elements (queues, exchanges, bindings). The option is a org.springframework.amqp.core.AmqpAdmin type. |  | AmqpAdmin
+| *camel.component.spring-rabbitmq.auto-declare* | Specifies whether the consumer should auto declare binding between exchange, queue and routing key when starting. | true | Boolean
+| *camel.component.spring-rabbitmq.auto-startup* | Specifies whether the consumer container should auto-startup. | true | Boolean
+| *camel.component.spring-rabbitmq.autowired-enabled* | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean
+| *camel.component.spring-rabbitmq.bridge-error-handler* | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean
+| *camel.component.spring-rabbitmq.connection-factory* | The connection factory to be use. A connection factory must be configured either on the component or endpoint. The option is a org.springframework.amqp.rabbit.connection.ConnectionFactory type. |  | ConnectionFactory
+| *camel.component.spring-rabbitmq.dead-letter-exchange* | The name of the dead letter exchange |  | String
+| *camel.component.spring-rabbitmq.dead-letter-exchange-type* | The type of the dead letter exchange | direct | String
+| *camel.component.spring-rabbitmq.dead-letter-queue* | The name of the dead letter queue |  | String
+| *camel.component.spring-rabbitmq.dead-letter-routing-key* | The routing key for the dead letter exchange |  | String
+| *camel.component.spring-rabbitmq.enabled* | Whether to enable auto configuration of the spring-rabbitmq component. This is enabled by default. |  | Boolean
+| *camel.component.spring-rabbitmq.error-handler* | To use a custom ErrorHandler for handling exceptions from the message listener (consumer). The option is a org.springframework.util.ErrorHandler type. |  | ErrorHandler
+| *camel.component.spring-rabbitmq.header-filter-strategy* | To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel message. The option is a org.apache.camel.spi.HeaderFilterStrategy type. |  | HeaderFilterStrategy
+| *camel.component.spring-rabbitmq.lazy-start-producer* | 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 fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is proc [...]
+| *camel.component.spring-rabbitmq.listener-container-factory* | To use a custom factory for creating and configuring ListenerContainer to be used by the consumer for receiving messages. The option is a org.apache.camel.component.springrabbit.ListenerContainerFactory type. |  | ListenerContainerFactory
+| *camel.component.spring-rabbitmq.message-converter* | To use a custom MessageConverter so you can be in control how to map to/from a org.springframework.amqp.core.Message. The option is a org.springframework.amqp.support.converter.MessageConverter type. |  | MessageConverter
+| *camel.component.spring-rabbitmq.message-properties-converter* | To use a custom MessagePropertiesConverter so you can be in control how to map to/from a org.springframework.amqp.core.MessageProperties. The option is a org.apache.camel.component.springrabbit.MessagePropertiesConverter type. |  | MessagePropertiesConverter
+| *camel.component.spring-rabbitmq.prefetch-count* | Tell the broker how many messages to send to each consumer in a single request. Often this can be set quite high to improve throughput. | 250 | Integer
+| *camel.component.spring-rabbitmq.shutdown-timeout* | The time to wait for workers in milliseconds after the container is stopped. If any workers are active when the shutdown signal comes they will be allowed to finish processing as long as they can finish within this timeout. The option is a long type. | 5000 | Long
+| *camel.component.spring-rabbitmq.test-connection-on-startup* | Specifies whether to test the connection on startup. This ensures that when Camel starts that all the JMS consumers have a valid connection to the JMS broker. If a connection cannot be granted then Camel throws an exception on startup. This ensures that Camel is not started with failed connections. The JMS producers is tested as well. | false | Boolean
+|===
+
+
+// spring-boot-auto-configure options: END
diff --git a/tooling/camel-spring-boot-bom/pom.xml b/tooling/camel-spring-boot-bom/pom.xml
index 99e5863..1a82d5d 100644
--- a/tooling/camel-spring-boot-bom/pom.xml
+++ b/tooling/camel-spring-boot-bom/pom.xml
@@ -1474,6 +1474,11 @@
       </dependency>
       <dependency>
         <groupId>org.apache.camel.springboot</groupId>
+        <artifactId>camel-spring-rabbitmq-starter</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.camel.springboot</groupId>
         <artifactId>camel-spring-redis-starter</artifactId>
         <version>${project.version}</version>
       </dependency>
diff --git a/tooling/camel-spring-boot-dependencies/pom.xml b/tooling/camel-spring-boot-dependencies/pom.xml
index 6709cc0..d15a6ad 100644
--- a/tooling/camel-spring-boot-dependencies/pom.xml
+++ b/tooling/camel-spring-boot-dependencies/pom.xml
@@ -1688,6 +1688,11 @@
       </dependency>
       <dependency>
         <groupId>org.apache.camel.springboot</groupId>
+        <artifactId>camel-spring-rabbitmq-starter</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.camel.springboot</groupId>
         <artifactId>camel-spring-redis-starter</artifactId>
         <version>${project.version}</version>
       </dependency>