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 2025/09/30 05:55:01 UTC

(camel) branch camel-4.14.x updated: CAMEL-22468: camel-bean - Bean cache should initialize later

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

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


The following commit(s) were added to refs/heads/camel-4.14.x by this push:
     new c9d92f922ae CAMEL-22468: camel-bean - Bean cache should initialize later
c9d92f922ae is described below

commit c9d92f922ae5562eeff9e2007b8ec3eddfc27d49
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Sep 30 07:54:31 2025 +0200

    CAMEL-22468: camel-bean - Bean cache should initialize later
---
 .../src/main/java/org/apache/camel/component/bean/BeanComponent.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanComponent.java b/components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanComponent.java
index b05ee04b8fe..38c162350d2 100644
--- a/components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanComponent.java
+++ b/components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanComponent.java
@@ -59,8 +59,8 @@ public class BeanComponent extends DefaultComponent {
     }
 
     @Override
-    protected void doInit() throws Exception {
-        super.doInit();
+    protected void doStart() throws Exception {
+        super.doStart();
 
         if (beanInfoCache == null && beanInfoCacheSize > 0) {
             LOG.debug("Creating BeanInfo with maximum cache size: {}", beanInfoCacheSize);