You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by th...@apache.org on 2014/10/29 11:12:28 UTC
svn commit: r1635088 -
/jackrabbit/oak/trunk/oak-doc/src/site/markdown/construct.md
Author: thomasm
Date: Wed Oct 29 10:12:27 2014
New Revision: 1635088
URL: http://svn.apache.org/r1635088
Log:
OAK-301 Document Oak
Modified:
jackrabbit/oak/trunk/oak-doc/src/site/markdown/construct.md
Modified: jackrabbit/oak/trunk/oak-doc/src/site/markdown/construct.md
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-doc/src/site/markdown/construct.md?rev=1635088&r1=1635087&r2=1635088&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-doc/src/site/markdown/construct.md (original)
+++ jackrabbit/oak/trunk/oak-doc/src/site/markdown/construct.md Wed Oct 29 10:12:27 2014
@@ -36,8 +36,8 @@ To use a MongoDB backend, use:
setMongoDB(db).getNodeStore();
Repository repo = new Jcr(new Oak(ns)).createRepository();
-To login to the repository and do some work.
-The default username/password combination is admin/admin:
+To login to the repository and do some work (using
+the default username/password combination), use:
Session session = repo.login(
new SimpleCredentials("admin", "admin".toCharArray()));
@@ -53,7 +53,7 @@ The default username/password combinatio
}
session.save();
-To logout and close the backend store:
+To logout and close the backend store, use:
session.logout();
ns.dispose();