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

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


The following commit(s) were added to refs/heads/main by this push:
     new 027791ee2f0 chore(comp/platfomr-http-vertx): use constant instead of 
port hardcode (#17880)
027791ee2f0 is described below

commit 027791ee2f098ab3a1fb7d86c6ef5e1e212b6b6e
Author: Pasquale Congiusti <pasquale.congiu...@gmail.com>
AuthorDate: Fri Apr 25 14:27:13 2025 +0200

    chore(comp/platfomr-http-vertx): use constant instead of port hardcode 
(#17880)
---
 .../camel/component/platform/http/vertx/VertxPlatformHttpEngine.java    | 2 +-
 .../camel/component/platform/http/vertx/VertxPlatformHttpRouter.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngine.java
 
b/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngine.java
index 79886763149..3f92369b45a 100644
--- 
a/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngine.java
+++ 
b/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngine.java
@@ -118,7 +118,7 @@ public class VertxPlatformHttpEngine extends ServiceSupport 
implements PlatformH
 
             if (port == 0) {
                 //fallback to default
-                return 8080;
+                return VertxPlatformHttpServerConfiguration.DEFAULT_BIND_PORT;
             }
         }
 
diff --git 
a/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpRouter.java
 
b/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpRouter.java
index 45893b60335..b9fbc628071 100644
--- 
a/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpRouter.java
+++ 
b/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpRouter.java
@@ -308,7 +308,7 @@ public class VertxPlatformHttpRouter implements Router {
      * @return              the default port router
      */
     public static VertxPlatformHttpRouter lookup(CamelContext camelContext) {
-        return lookup(camelContext, getRouterNameFromPort(8080));
+        return lookup(camelContext, 
getRouterNameFromPort(VertxPlatformHttpServerConfiguration.DEFAULT_BIND_PORT));
     }
 
     public static String getRouterNameFromPort(int port) {

Reply via email to