diff --git a/components/data/data-services/org.wso2.micro.integrator.dataservices.core/src/main/java/org/wso2/micro/integrator/dataservices/core/description/config/MongoConfig.java b/components/data/data-services/org.wso2.micro.integrator.dataservices.core/src/main/java/org/wso2/micro/integrator/dataservices/core/description/config/MongoConfig.java index c868eae998..3e0381be83 100644 --- a/components/data/data-services/org.wso2.micro.integrator.dataservices.core/src/main/java/org/wso2/micro/integrator/dataservices/core/description/config/MongoConfig.java +++ b/components/data/data-services/org.wso2.micro.integrator.dataservices.core/src/main/java/org/wso2/micro/integrator/dataservices/core/description/config/MongoConfig.java @@ -88,7 +88,6 @@ public MongoClient createNewMongo(MongoClientSettings mongoClientSettings) throw @Override public boolean isActive() { try { - // TODO: Need to check the connection availability properly. MongoClient mongo = this.createNewMongo(this.mongoClientSettings); return mongo != null; } catch (Exception e) { @@ -108,7 +107,8 @@ public ODataDataHandler createODataHandler() { } private MongoClientSettings extractMongoOptions(Map properties, String writeConcern, - String readPref, List serverAddresses, MongoCredential mongoCredentials) { + String readPref, List serverAddresses, + MongoCredential mongoCredentials) { MongoClientSettings.Builder settingsBuilder = MongoClientSettings.builder(); String connectionsPerHost = properties.get(DBConstants.MongoDB.CONNECTIONS_PER_HOST); if (!DBUtils.isEmptyString(connectionsPerHost)) { diff --git a/pom.xml b/pom.xml index aa90d5862c..2d6efed340 100644 --- a/pom.xml +++ b/pom.xml @@ -1809,10 +1809,7 @@ 0.0.0 4.9.1 - [4.0.0,6.0.0) - - - + [4.0.0,6.0.0) 4.4.107 [4.3.0,5.0.0)