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

JiriOndrusek pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit e8047f10b414e899fbf589c7248cb4400006fa60
Author: Jiri Ondrusek <[email protected]>
AuthorDate: Thu May 21 09:59:22 2026 +0200

    Eagerly build PropertiesComponent to fix Simple language expressions
    
    After CAMEL-23547, PropertiesFunctionResolver must be built before use.
    In Quarkus, CamelContext is built at STATIC_INIT, so we must ensure the
    PropertiesComponent is built when created in createPropertiesComponent().
    
    This fixes Simple language expressions like ${header.operationName} which
    were evaluating to empty strings, causing CXF SOAP test failures.
    
    Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
---
 .../main/java/org/apache/camel/quarkus/core/FastCamelContext.java   | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/FastCamelContext.java
 
b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/FastCamelContext.java
index c76d7fe46d..3126cb1af4 100644
--- 
a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/FastCamelContext.java
+++ 
b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/FastCamelContext.java
@@ -167,6 +167,12 @@ public class FastCamelContext extends DefaultCamelContext 
implements CatalogCame
         org.apache.camel.component.properties.PropertiesComponent pc = new 
org.apache.camel.component.properties.PropertiesComponent();
         pc.setAutoDiscoverPropertiesSources(true);
         pc.addPropertiesSource(new CamelMicroProfilePropertiesSource());
+        pc.setCamelContext(this);
+        try {
+            pc.build();
+        } catch (Exception e) {
+            throw new RuntimeException("Failed to build PropertiesComponent", 
e);
+        }
         return pc;
     }
 

Reply via email to