Ask a Question

connect to mongodb

New Contributor

connect to mongodb

Hi All


I am trying to connect the mongodb , could you please help me with driver and connection string to be used for this


Downloaded "mongodb-driver-3.0.0.jar" and "mongo-java-driver-2.9.1.jar" and placed in bin/ext folder


Used the below driver and connection string but its failing 


Driver  - com.mongodb.mongo

ConnectionString format - mongodb://username:password@host:port/dbname/?


It would be great if any body help me on this since i stuck with this for the past 2 weeks . Gone through all sites but couldnt find the clear information on this

Showing results for 
Search instead for 
Did you mean: