jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chetan Mehrotra <chetan.mehro...@gmail.com>
Subject Re: svn commit: r1560611 - in /jackrabbit/oak/trunk: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/util/ oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/mongomk/ oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/ oak-jcr/src/t...
Date Thu, 23 Jan 2014 10:45:00 GMT
On Thu, Jan 23, 2014 at 2:35 PM,  <thomasm@apache.org> wrote:
> +        mongo = new MongoClient(mongoURI);
> +        db = mongo.getDB(mongoURI.getDatabase());

The database referred in the URI is used by Mongo for determining the
user database against which credentials if passed needs to be
validated.

------------------
/database
Optional. The name of the database to authenticate if the connection
string includes authentication credentials in the form of
username:password@. If /database is not specified and the connection
string includes credentials, the driver will authenticate to the admin
database.
------------------

So far we do not make use of credentials so database field can be
used. But better to manage it in a separate way.

Chetan Mehrotra
[1] http://docs.mongodb.org/manual/reference/connection-string/

Mime
View raw message