Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 926 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 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.