connection « mongodb « Java Database Q&A





1. MongoDB java.net.ConnectException: Connection refused    stackoverflow.com

I have problem with used MongoDB I am testing a web aplication use Jmeter test. When set up a big load, on the web application, it is right. When set up a low load ...

2. MongoDB java connection issues    stackoverflow.com

I am trying to run the following code:

public static void main(String args[]) throws UnknownHostException, MongoException{
        Mongo m = new Mongo( "localhost", 27017 );
  ...

3. MongoDb connection refused    stackoverflow.com

This is my first attempt to consume MongoDB. I've got Mongo running:

ps -ef | grep [m]ongo
mongodb  11023  1  0 Jun24 ? 00:00:03 /usr/lib/mongodb/mongod --config /etc/mongodb.conf
And the error comes ...

4. Use properties to parameterize connection to Mongodb    stackoverflow.com

I am trying to use Properties file to parameterize connection to Mongodb. I have added this function:

public static Properties load(String filename) throws IOException, FileNotFoundException{
  Properties properties = new Properties();

  FileInputStream ...

5. MongoDB replica set over a slow internet connection    stackoverflow.com

here's my problem: I have a MongoDB Replica Set which I will have to use on extremelly slow connections (mainly inner africa, etc), I was wondering if other people over here have ...

6. Mongo opens too many connections    stackoverflow.com

I am trying to write a lot of data to MongoDB, in a Java loop. I am getting errors based on the number of connections open. My theory is that since MongoDB ...

7. Best practice of managing database connections in a web app    stackoverflow.com

I am developing a MongoDB app with Java but I think this question related to datastore connections for web apps in general. I like to structure all web apps with four top-level ...