Hi,
I believe this to be an issue that can only be fixed at ActiveMQ, I've
raised an issue[1] and created a pull request[2] with one way this can
be addressed.

zoran

[1] https://issues.apache.org/jira/browse/AMQ-6706
[2] https://github.com/apache/activemq/pull/254

On Thu, Jun 15, 2017 at 3:15 PM, nexus <a...@mastersoft.lv> wrote:
> Hello, Zoran
>
> Thank you for the response!
>
> I'm continuing my investigation. Seems, that shutdown of ActiveMQ + Camel
> never worked perfectly :)
>  at least starting from activemq v5.8.0 with camel v2.10.3...
> or, probably, the example configuration shipped with release and managed in
> public access does not bring desired effect
>
> I have downloaded and tested following activemq releases:
> activemq v5.8.0 (camel v2.10.3)
> activemq v5.9.0 (camel v2.12.1)
> activemq v5.10.0 (camel v2.13.1)
> activemq v5.14.5 (camel v2.16.3)
> activemq v5.14.5 (camel v2.20.0-SNAPSHOT)
> /commit fef52d7eaabe205496319f9b459da5258d8678bb/
> with tiny yet sufficient configuration based on  recommendations
> <https://github.com/apache/camel/blob/master/examples/camel-example-management/src/main/resources/META-INF/spring/camel-context.xml>
> from Claus Ibsen:
>
> activemq.xml <http://camel.465427.n5.nabble.com/file/n5804170/activemq.xml>
>
> In fact, the last part of config. with props. placeholder and jetty can be
> excluded, but I've used activemq web console to produce messages.
>
> Also, I've raised error level for *org.apache.camel* logger in
> *log4j.properties* to dump more details.
>
> Testing procedure:
> start activemq service and wait until camel routes are up and running
> produce message via activemq web console
> verify that camel redirected message to other queue
> stop activemq service
> The result is always the same, activemq shuts down before camel.
> You may find details in attached log files:
> activemq-5-8-0.log
> <http://camel.465427.n5.nabble.com/file/n5804170/activemq-5-8-0.log>
> activemq-5-9-0.log
> <http://camel.465427.n5.nabble.com/file/n5804170/activemq-5-9-0.log>
> activemq-5-10-0.log
> <http://camel.465427.n5.nabble.com/file/n5804170/activemq-5-10-0.log>
> activemq-5-14-5.log
> <http://camel.465427.n5.nabble.com/file/n5804170/activemq-5-14-5.log>
> activemq-5-14-5-snapshot.log
> <http://camel.465427.n5.nabble.com/file/n5804170/activemq-5-14-5-snapshot.log>
> (Camel 2.20.0-SNAPSHOT)
>
> Additionally, I've tried to simulate clean shutdown sequence by stopping
> camel routes manually from jconsole after producing message and before
> stopping activemq service.
> No errors in log:  activemq-5-14-5-jconsole.log
> <http://camel.465427.n5.nabble.com/file/n5804170/activemq-5-14-5-jconsole.log>
> .
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/ActiveMQ-shuts-down-before-Camel-routes-when-stopping-service-in-Windows-tp5803644p5804170.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Zoran Regvart

Reply via email to