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/a8ac8e32 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a8ac8e32 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a8ac8e32 Branch: refs/heads/camel-2.17.x Commit: a8ac8e322377a8bc52dd0885ed67d5a8c53dfc59 Parents: 646b6a1 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:49 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/a8ac8e32/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(); } } };