Lugaru Lugaru - 1 year ago 152
Java Question

MongoDB: check connection to DB

I'm looking for best way to check connection to Mongo DB.
Situation: client makes request (api) to server. And server returns status of all databases.

What the best way to do it?

Answer Source

Use MongoClient for Java, all the info you need is here...

http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-java-driver/

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download