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

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


The following commit(s) were added to refs/heads/main by this push:
     new ccec69c  Use platform-http instead of netty for health-checks
ccec69c is described below

commit ccec69ca21d2dfde9c8d9be5be2f9b634faa34ae
Author: Branislav Smolicek <bsmol...@redhat.com>
AuthorDate: Tue Apr 22 18:03:21 2025 +0200

    Use platform-http instead of netty for health-checks
---
 health-checks/pom.xml                                        | 2 +-
 health-checks/src/main/java/sample/camel/MyRouteBuilder.java | 3 ++-
 health-checks/src/main/resources/application.properties      | 4 ++--
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/health-checks/pom.xml b/health-checks/pom.xml
index 570ebd4..ab4f44b 100644
--- a/health-checks/pom.xml
+++ b/health-checks/pom.xml
@@ -76,7 +76,7 @@
         </dependency>
         <dependency>
             <groupId>org.apache.camel.springboot</groupId>
-            <artifactId>camel-netty-starter</artifactId>
+            <artifactId>camel-platform-http-starter</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.camel.springboot</groupId>
diff --git a/health-checks/src/main/java/sample/camel/MyRouteBuilder.java 
b/health-checks/src/main/java/sample/camel/MyRouteBuilder.java
index b1cbbe1..aa12799 100644
--- a/health-checks/src/main/java/sample/camel/MyRouteBuilder.java
+++ b/health-checks/src/main/java/sample/camel/MyRouteBuilder.java
@@ -36,6 +36,7 @@ public class MyRouteBuilder extends RouteBuilder {
         // this route is invalid and fails during startup
         // the supervising route controller will take over and attempt
         // to restart this route
-        from("netty:tcp:unknownhost").to("log:dummy").routeId("netty");
+        from("platform-http:/unknownhost").routeId("health-route")
+                .to("log:dummy");
     }
 }
diff --git a/health-checks/src/main/resources/application.properties 
b/health-checks/src/main/resources/application.properties
index 20dc82f..58acf84 100644
--- a/health-checks/src/main/resources/application.properties
+++ b/health-checks/src/main/resources/application.properties
@@ -69,7 +69,7 @@ camel.health.enabled = true
 camel.health.exposure-level = default
 
 # find grained routes configuration per route (support wildcards)
-# for example to turn of the netty route
-### camel.health.exclude-pattern = netty
+# for example to turn of the health route
+### camel.health.exclude-pattern = health-route
 
 

Reply via email to