CAMEL-10384: Fixed shutdown of camel spring boot when using Camel main runner. Thanks to Artur Markiewicz for the patch.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f2c5a048 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f2c5a048 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f2c5a048 Branch: refs/heads/camel-2.18.x Commit: f2c5a0484ba85e7e7e0d43432639b073a15a449f Parents: df5e6a6 Author: Claus Ibsen <davscl...@apache.org> Authored: Sat Oct 29 22:05:07 2016 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sat Oct 29 22:05:34 2016 +0200 ---------------------------------------------------------------------- .../camel/spring/boot/CamelSpringBootApplicationController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/f2c5a048/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationController.java ---------------------------------------------------------------------- diff --git a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationController.java b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationController.java index bbca474..c05b35a 100644 --- a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationController.java +++ b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationController.java @@ -53,7 +53,8 @@ public class CamelSpringBootApplicationController { try { super.doStop(); } finally { - latch.countDown(); + // should use the latch on this instance + CamelSpringBootApplicationController.this.latch.countDown(); } } };