[JAVA-84] More powerful connection string (like PHP driver has) Created: 29/Jan/10  Updated: 29/Oct/10  Resolved: 25/Oct/10

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 1.2
Fix Version/s: 2.3

Type: Improvement Priority: Major - P3
Reporter: Niko Schmuck Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All



 Description   

As a developer using spring bean configuration I would like to easily setup an configured com.mongodb.Mongo bean, no matter if I am using a simple test instance (1) or replica pairs (2) with the help of one, simple connection string. I think the PHP driver has already implemented this connection string parsing mechanism.

(1) new Mongo("localhost:27017")
(2) new Mongo("left.example.org:27017,right.example.org:27017")



 Comments   
Comment by Eliot Horowitz (Inactive) [ 25/Oct/10 ]

Should use public Mongo( MongoURI uri );

Comment by Eliot Horowitz (Inactive) [ 05/Oct/10 ]

This is mostly done but I'm not sure I love the syntax yet - so dont' to lock it down yet.

Comment by auto [ 22/Sep/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: working on MongoURI JAVA-84
http://github.com/mongodb/mongo-java-driver/commit/674430c0cba8366065ba3265765eda825f8cd52e

Generated at Thu Feb 08 08:51:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.