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 2019/01/25 08:42:37 UTC

[camel] branch camel-2.22.x updated: CAMEL-13123 - camel-mongodb3: don't close connection on endpoint stop

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-2.22.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.22.x by this push:
     new 5558bc0  CAMEL-13123 - camel-mongodb3: don't close connection on endpoint stop
5558bc0 is described below

commit 5558bc0a6456dba94cf09d24e585586f5f997534
Author: xificurC <xi...@gmail.com>
AuthorDate: Thu Jan 24 16:02:06 2019 +0100

    CAMEL-13123 - camel-mongodb3: don't close connection on endpoint stop
---
 .../org/apache/camel/component/mongodb3/MongoDbEndpoint.java     | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/components/camel-mongodb3/src/main/java/org/apache/camel/component/mongodb3/MongoDbEndpoint.java b/components/camel-mongodb3/src/main/java/org/apache/camel/component/mongodb3/MongoDbEndpoint.java
index 77fec41..18de838 100644
--- a/components/camel-mongodb3/src/main/java/org/apache/camel/component/mongodb3/MongoDbEndpoint.java
+++ b/components/camel-mongodb3/src/main/java/org/apache/camel/component/mongodb3/MongoDbEndpoint.java
@@ -303,15 +303,6 @@ public class MongoDbEndpoint extends DefaultEndpoint {
         super.doStart();
     }
     
-    @Override
-    protected void doStop() throws Exception {
-        super.doStop();
-        if (mongoConnection != null) {
-            LOG.debug("Closing connection");
-            mongoConnection.close();
-        }
-    }
-
     // ======= Getters and setters
     // ===============================================