[
https://issues.apache.org/jira/browse/CAMEL-9449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15071449#comment-15071449
]
Claus Ibsen commented on CAMEL-9449:
------------------------------------
Contributions is welcome. For example add a new option to MainSupport to
specify an error code if duration was hit.
Maybe name it durationHitExitCode
> Allow to specify custom exit code when camel exits due to expired Duration
> --------------------------------------------------------------------------
>
> Key: CAMEL-9449
> URL: https://issues.apache.org/jira/browse/CAMEL-9449
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Nishant Jaiswal
> Priority: Minor
>
> When java main class exits where duration is expired then it should be
> allowed to exit with a different exit code than 0.
> Currently when java main class exists after setDuration() is set to say 60
> seconds, it always does that with exit code 0
> This does not give flexibility to the parent process to know if camel process
> exited because it was successful or because Duration limit was it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)