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 febe6fdf7fd9799c8bf1ff06f757f7213a421357 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Feb 15 09:28:31 2018 +0100 CAMEL-12268 - Camel-AWS: Lets call shutdown on the clients while stopping endpoints - AWS SNS --- .../java/org/apache/camel/component/aws/sns/SnsEndpoint.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java index 352ebb4..0576914 100644 --- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java +++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java @@ -22,7 +22,6 @@ import com.amazonaws.auth.AWSCredentials; import com.amazonaws.auth.AWSCredentialsProvider; import com.amazonaws.auth.AWSStaticCredentialsProvider; import com.amazonaws.auth.BasicAWSCredentials; -import com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration; import com.amazonaws.regions.Regions; import com.amazonaws.services.sns.AmazonSNS; import com.amazonaws.services.sns.AmazonSNSClientBuilder; @@ -153,6 +152,14 @@ public class SnsEndpoint extends DefaultEndpoint implements HeaderFilterStrategy } } + + @Override + public void doStop() throws Exception { + if (snsClient != null) { + snsClient.shutdown(); + } + super.doStop(); + } public SnsConfiguration getConfiguration() { return configuration; -- To stop receiving notification emails like this one, please contact acosent...@apache.org.