You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/02/15 08:41:43 UTC

[camel] 06/13: CAMEL-12268 - Camel-AWS: Lets call shutdown on the clients while stopping endpoints - AWS DDB

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 0a34a3ccfdf487b2e855c0ed567b479a49bcd51e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 15 09:31:04 2018 +0100

    CAMEL-12268 - Camel-AWS: Lets call shutdown on the clients while stopping endpoints - AWS DDB
---
 .../main/java/org/apache/camel/component/aws/ddb/DdbEndpoint.java | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddb/DdbEndpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddb/DdbEndpoint.java
index b10cecd..fa8f45e 100644
--- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddb/DdbEndpoint.java
+++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddb/DdbEndpoint.java
@@ -111,6 +111,14 @@ public class DdbEndpoint extends ScheduledPollEndpoint {
             LOG.trace("Table [{}] created", tableName);
         }
     }
+    
+    @Override
+    public void doStop() throws Exception {
+        if (ddbClient != null) {
+            ddbClient.shutdown();
+        }
+        super.doStop();
+    }
 
     private TableDescription createTable(String tableName) {
         CreateTableRequest createTableRequest = new CreateTableRequest().withTableName(tableName)

-- 
To stop receiving notification emails like this one, please contact
acosentino@apache.org.