You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Steffen Brauns (Jira)" <ji...@apache.org> on 2022/05/02 11:36:00 UTC

[jira] [Comment Edited] (CAMEL-18012) Fixed / Hard coded (additional) timeout value in DefaultMainShutdownStrategy should be made configurable

    [ https://issues.apache.org/jira/browse/CAMEL-18012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17530687#comment-17530687 ] 

Steffen Brauns edited comment on CAMEL-18012 at 5/2/22 11:35 AM:
-----------------------------------------------------------------

<bean id="myCamelShutdownStrategy" class="org.apache.camel.impl.engine.DefaultShutdownStrategy">
    <property name="timeout" value="2000" />
    <property name="timeUnit" value="MILLISECONDS" />
</bean>

There is only one spring bean of type DefaultShutdownStrategy


was (Author: JIRAUSER288411):
<bean id="myCamelShutdownStrategy" class="org.apache.camel.impl.engine.DefaultShutdownStrategy">
    <property name="timeout" value="2000" />
    <property name="timeUnit" value="MILLISECONDS" />
</bean>

> Fixed / Hard coded (additional) timeout value in DefaultMainShutdownStrategy should be made configurable
> --------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-18012
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18012
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-main
>    Affects Versions: 3.14.2, 3.16.0
>            Reporter: Steffen Brauns
>            Priority: Minor
>         Attachments: image-2022-04-26-10-13-37-605.png
>
>
> Within method DefaultMainShutdownStrategy#handleHangup() there is a fixed additional 5 seconds timeout value to allow camel to shutdown gracefully (see attached screenshot). In my usage of camel this 5 seconds aren't enough (I need in some cases e.g. 30 seconds), otherwise my application cannot shutdown gracefully. This additional timeout value should be made in some way configurable (at least with a setter, constructor, better with a command line option for org.apache.camel.spring.Main)!
> !image-2022-04-26-10-13-37-605.png!



--
This message was sent by Atlassian Jira
(v8.20.7#820007)