You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2026/06/09 06:17:20 UTC
(camel-quarkus) 27/45: Eagerly build PropertiesComponent to fix Simple language expressions
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 800703cfca582ccc55cd2fd31edf957a34f95640
Author: Jiri Ondrusek <on...@gmail.com>
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 <no...@anthropic.com>
---
.../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;
}