This is an automated email from the ASF dual-hosted git repository. davsclaus 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 8691b9e CAMEL-13125 : Removal of stop method from MongoDbEndpoint (#2763) 8691b9e is described below commit 8691b9eecae85f0fed8172a985bff6870ac5af69 Author: bwesterfield <bwesterfi...@gmail.com> AuthorDate: Tue Feb 12 23:56:45 2019 -0500 CAMEL-13125 : Removal of stop method from MongoDbEndpoint (#2763) --- .../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 212231a..12bd1e9 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 @@ -296,15 +296,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();