This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 257c4c81011e98b4e665f251334688224b2b9f18 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Feb 15 09:36:25 2018 +0100 CAMEL-12268 - Camel-AWS: Lets call shutdown on the clients while stopping endpoints - AWS MQ --- .../main/java/org/apache/camel/component/aws/mq/MQEndpoint.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/mq/MQEndpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/mq/MQEndpoint.java index 67a2d31..cb44848 100644 --- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/mq/MQEndpoint.java +++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/mq/MQEndpoint.java @@ -68,6 +68,14 @@ public class MQEndpoint extends ScheduledPollEndpoint { mqClient = configuration.getAmazonMqClient() != null ? configuration.getAmazonMqClient() : (AmazonMQClient)createMQClient(); } + + @Override + public void doStop() throws Exception { + if (mqClient != null) { + mqClient.shutdown(); + } + super.doStop(); + } public MQConfiguration getConfiguration() { return configuration; -- To stop receiving notification emails like this one, please contact acosent...@apache.org.