[camel] branch camel-2.x updated: CAMEL-13125 : Removal of stop method from MongoDbEndpoint (#2757)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[camel] branch camel-2.x updated: CAMEL-13125 : Removal of stop method from MongoDbEndpoint (#2757)

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

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


The following commit(s) were added to refs/heads/camel-2.x by this push:
     new c7349e7  CAMEL-13125 : Removal of stop method from MongoDbEndpoint (#2757)
c7349e7 is described below

commit c7349e7287fac697d5de03912abd59df686fecdb
Author: bwesterfield <[hidden email]>
AuthorDate: Mon Feb 11 13:41:29 2019 -0500

    CAMEL-13125 : Removal of stop method from MongoDbEndpoint (#2757)
---
 .../java/org/apache/camel/component/mongodb/MongoDbEndpoint.java | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
index 12a92bd..3ef9e6f 100644
--- a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
+++ b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
@@ -295,15 +295,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();
-        }
-    }
-
     public Exchange createMongoDbExchange(DBObject dbObj) {
         Exchange exchange = super.createExchange();
         Message message = exchange.getIn();