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

Guillaume Nodet updated CAMEL-23230:
------------------------------------
    Fix Version/s: 4.19.0

> 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)

Reply via email to