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 b179491952c camel-jbang - Fixed deadline when doing camel version list
b179491952c is described below

commit b179491952c0e1931c6b0abb1178d87363aa020f
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Mon Jun 17 15:51:43 2024 +0200

    camel-jbang - Fixed deadline when doing camel version list
---
 .../apache/camel/component/platform/http/main/MainHttpServer.java   | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 
a/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
 
b/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
index 2d7719b3298..6482f0abda3 100644
--- 
a/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
+++ 
b/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
@@ -280,6 +280,7 @@ public class MainHttpServer extends ServiceSupport 
implements CamelContextAware,
         ObjectHelper.notNull(camelContext, "CamelContext");
 
         server = new VertxPlatformHttpServer(configuration);
+        // adding server to camel-context which will manage shutdown the 
server, so we should not do this here
         camelContext.addService(server);
 
         pluginRegistry = 
getCamelContext().getCamelContextExtension().getContextPlugin(PlatformHttpPluginRegistry.class);
@@ -628,11 +629,6 @@ public class MainHttpServer extends ServiceSupport 
implements CamelContextAware,
                 "Cannot create PlatformHttpPluginRegistry. Make sure 
camel-platform-http JAR is on classpath."));
     }
 
-    @Override
-    protected void doStop() throws Exception {
-        ServiceHelper.stopAndShutdownService(server);
-    }
-
     private static void healthCheckStatus(StringBuilder sb, boolean up) {
         if (up) {
             sb.append("    \"status\": \"UP\"\n");

Reply via email to