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 2020/01/14 04:32:11 UTC

[camel] branch master updated (a0462f0 -> 50b33b7)

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.git.


    from a0462f0  CAMEL-14354: camel-core - Optimize
     new 9f7fcb5  Polished
     new 50b33b7  Regen

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:
 .../java/org/apache/camel/support/EventHelper.java |  2 +-
 .../modules/ROOT/pages/cron-component.adoc         |  6 ++---
 docs/components/modules/ROOT/pages/spring.adoc     | 26 ++++++++++++++++++++++
 3 files changed, 30 insertions(+), 4 deletions(-)


[camel] 02/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.git

commit 50b33b7e00cc9d5c4da7ebe8b49308633797d4b1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Jan 14 05:31:44 2020 +0100

    Regen
---
 .../modules/ROOT/pages/cron-component.adoc         |  6 ++---
 docs/components/modules/ROOT/pages/spring.adoc     | 26 ++++++++++++++++++++++
 2 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/docs/components/modules/ROOT/pages/cron-component.adoc b/docs/components/modules/ROOT/pages/cron-component.adoc
index 3c5b6cd..1d337b02 100644
--- a/docs/components/modules/ROOT/pages/cron-component.adoc
+++ b/docs/components/modules/ROOT/pages/cron-component.adoc
@@ -16,7 +16,8 @@ the implementation of their choice.
 
 The following standard Camel components support the Cron endpoints:
 
-- Quartz
+- Camel-quartz
+- Camel-spring
 
 The Cron component is also supported in **Camel K**, which can use the Kubernetes scheduler to trigger the routes when required by the cron expression.
 Camel K does not require additional libraries to be plugged when using cron expressions compatible with Kubernetes cron syntax.
@@ -40,7 +41,7 @@ Additional libraries may be needed in order to plug a specific implementation.
 
 
 // component options: START
-The Cron component supports 4 options, which are listed below.
+The Cron component supports 3 options, which are listed below.
 
 
 
@@ -49,7 +50,6 @@ The Cron component supports 4 options, which are listed below.
 | Name | Description | Default | Type
 | *cronService* (advanced) | The id of the CamelCronService to use when multiple implementations are provided |  | String
 | *basicPropertyBinding* (advanced) | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean
-| *lazyStartProducer* (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 processed then creating and [...]
 | *bridgeErrorHandler* (consumer) | 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
 |===
 // component options: END
diff --git a/docs/components/modules/ROOT/pages/spring.adoc b/docs/components/modules/ROOT/pages/spring.adoc
index 22680a9..65a5e6c 100644
--- a/docs/components/modules/ROOT/pages/spring.adoc
+++ b/docs/components/modules/ROOT/pages/spring.adoc
@@ -380,3 +380,29 @@ Integration] for further injections.
 To avoid a hung route when testing using Spring Transactions see the
 note about Spring Integration Testing under Transactional Client.
 
+== Cron Component Support
+
+Camel-spring can be used as implementation of the Camel Cron component.
+
+
+Maven users will need to add the following additional dependency to their `pom.xml`:
+
+[source,xml]
+------------------------------------------------------------
+<dependency>
+    <groupId>org.apache.camel</groupId>
+    <artifactId>camel-cron</artifactId>
+    <version>x.x.x</version>
+    <!-- use the same version as your Camel core version -->
+</dependency>
+------------------------------------------------------------
+
+Users can then use the cron component inside routes of their Spring or Spring-boot application:
+
+[source,xml]
+----
+<route>
+  <from uri="cron:tab?schedule=0/1+*+*+*+*+?"/>
+  <to uri="log:info"/>
+</route>
+----


[camel] 01/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.git

commit 9f7fcb5e159a0fc5c7f936fd0740b7236654d9b1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Jan 13 21:47:00 2020 +0100

    Polished
---
 .../src/main/java/org/apache/camel/support/EventHelper.java             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-support/src/main/java/org/apache/camel/support/EventHelper.java b/core/camel-support/src/main/java/org/apache/camel/support/EventHelper.java
index 8a3e2ef..3f6a937 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/EventHelper.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/EventHelper.java
@@ -1371,7 +1371,7 @@ public final class EventHelper {
         try {
             notifier.notify(event);
         } catch (Throwable e) {
-            LOG.warn("Error notifying event " + event + ". This exception will be ignored. ", e);
+            LOG.warn("Error notifying event " + event + ". This exception will be ignored.", e);
         }
 
         return true;