Java Application connectivity with MongoDb