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

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


The following commit(s) were added to refs/heads/main by this push:
     new 0b6b3981 Fix: adapt the loyalty url config to match the blog post
0b6b3981 is described below

commit 0b6b39810b9ed845f933184f1fa739cba9ee726d
Author: Gaelle Fournier <[email protected]>
AuthorDate: Mon Nov 2 17:13:16 2026 +0100

    Fix: adapt the loyalty url config to match the blog post
---
 .../src/main/java/org/acme/orders/OrderEventRoute.java              | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/quarkus-to-camel-quarkus/camel-quarkus-orders/src/main/java/org/acme/orders/OrderEventRoute.java
 
b/quarkus-to-camel-quarkus/camel-quarkus-orders/src/main/java/org/acme/orders/OrderEventRoute.java
index 5e915649..0298c5ea 100644
--- 
a/quarkus-to-camel-quarkus/camel-quarkus-orders/src/main/java/org/acme/orders/OrderEventRoute.java
+++ 
b/quarkus-to-camel-quarkus/camel-quarkus-orders/src/main/java/org/acme/orders/OrderEventRoute.java
@@ -19,10 +19,14 @@ package org.acme.orders;
 import jakarta.enterprise.context.ApplicationScoped;
 import org.apache.camel.LoggingLevel;
 import org.apache.camel.builder.RouteBuilder;
+import org.eclipse.microprofile.config.inject.ConfigProperty;
 
 @ApplicationScoped
 public class OrderEventRoute extends RouteBuilder {
 
+    @ConfigProperty(name = "loyalty.api.url")
+    String loyaltyApiUrl;
+
     @Override
     public void configure() {
         onException(Exception.class)
@@ -40,7 +44,7 @@ public class OrderEventRoute extends RouteBuilder {
                 .to("kafka:order-events")
                 .log("Order event sent to Kafka")
                 .setHeader("Content-Type", constant("application/json"))
-                .to("http://{{loyalty.api.url}}/api/loyalty/notify";)
+                .to("http://"; + loyaltyApiUrl + "/api/loyalty/notify")
                 .log("Loyalty service notified");
     }
 }

Reply via email to