You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2026/03/24 14:14:00 UTC

[jira] [Resolved] (CAMEL-23230) camel-jbang: Camel Main does not exit with RabbitMQ and durationMaxIdleSeconds

     [ https://issues.apache.org/jira/browse/CAMEL-23230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved CAMEL-23230.
-------------------------------------
    Resolution: Fixed

> camel-jbang: Camel Main does not exit with RabbitMQ and durationMaxIdleSeconds
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-23230
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23230
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 4.18.0
>            Reporter: Simon Hartl
>            Priority: Major
>             Fix For: 4.19.0
>
>
> When running a Camel application (exported via {{{}camel --export{}}}) with {{{}camel.main.durationMaxIdleSeconds{}}}, the JVM does not terminate if the RabbitMQ component is used.
> This appears to be caused by RabbitMQ thread pools preventing shutdown.
> *Steps to Reproduce*
>  # Create a route using RabbitMQ
>  # Export with {{camel --export}}
>  # Set {{camel.main.durationMaxIdleSeconds}}
>  # Run the application
> *Workaround*
> If the main class is adopted it does work:
> {code:java}
> package org.example.project.route;
> import org.apache.camel.main.Main;
> public class CamelApplication {
>     public static void main(String[] args) throws Exception {
>         Main main = new Main(CamelApplication.class);
>         main.run(args);
>         System.exit(0);  // ← this one line, nothing else changes
>     }
> } {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)