[
https://issues.apache.org/jira/browse/AMQ-6706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16053906#comment-16053906
]
Zoran Regvart commented on AMQ-6706:
------------------------------------
[~cshannon] In case of Camel it's essential that the hook is called before
{{stopping}} is set to {{false}} as the VM transport would throw an exception
when used with a stopped broker. I've incorporated your other suggestions in
the pull request.
> Allow for hooks before broker stop occurs
> -----------------------------------------
>
> Key: AMQ-6706
> URL: https://issues.apache.org/jira/browse/AMQ-6706
> Project: ActiveMQ
> Issue Type: Improvement
> Components: activemq-camel, Broker
> Environment: Every ActiveMQ version with embedded Camel
> Reporter: Zoran Regvart
>
> When Camel is run embedded within ActiveMQ it's shutdown is called at the
> point the broker is already stopped, this can lead to data loss as there
> could be exchanges that have not ended.
> I propose a preStopHook(s) that can be invoked during ActiveMQ shutdown but
> before the broker is shutdown.
> This would allow Camel to gracefully shutdown while the broker is still
> started.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)