Permalink
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (18 sloc) 926 Bytes

Wordnik MongoDB Utils

Overview

This project contains utils for working with MongoDB

To Build

Build the project with maven:

mvn package

Or get the artifacts from maven central

Utilities Included

com.wordnik.mongo.connection.MongoDBConnectionManager

A wrapper around the MongoDB java driver which allows the following:

  • - Friendly, string-based named connection management:
  • - Auto-detection of master/slave or replica-sets
  • - Simple connection pooling, isolated to a single host:port/schema
  • See the tests for examples

    Note! The tests require a mongodb master running on port 27017 and a replica-set on ports 27018-27020. The integration-test will be updated with a mongodb-maven plugin shortly to support this.