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


The following commit(s) were added to refs/heads/master by this push:
     new b53ff16  CAMEL-16353: camel-main - Add @EagerClassloaded to mark 
classes which should be eager loaded via camel-main. This optimize to load 
these classes before Camel is started and otherwise would load these classes on 
first message processed. A maven plugin scans the code and updates the source 
code to keep the list of classes to eager loaded automatic up-to-date.
b53ff16 is described below

commit b53ff16001a903d973482505ebfd0970eb405a0a
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Wed Mar 31 13:37:57 2021 +0200

    CAMEL-16353: camel-main - Add @EagerClassloaded to mark classes which 
should be eager loaded via camel-main. This optimize to load these classes 
before Camel is started and otherwise would load these classes on first message 
processed. A maven plugin scans the code and updates the source code to keep 
the list of classes to eager loaded automatic up-to-date.
---
 examples/main-tiny/src/main/resources/application.properties | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/examples/main-tiny/src/main/resources/application.properties 
b/examples/main-tiny/src/main/resources/application.properties
index 800e93a..068ebd9 100644
--- a/examples/main-tiny/src/main/resources/application.properties
+++ b/examples/main-tiny/src/main/resources/application.properties
@@ -28,7 +28,10 @@ camel.main.beanIntrospectionLoggingLevel=INFO
 
 # run in lightweight mode to be tiny as possible
 camel.main.lightweight = true
+# and eager load classes
+camel.main.eager-classloading = true
 
+# use object pooling to reduce JVM garbage collection
 camel.main.exchange-factory = pooled
 camel.main.exchange-factory-statistics-enabled = true
 

Reply via email to