You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Ryan Ashcraft (JIRA)" <ji...@apache.org> on 2019/07/10 15:17:00 UTC

[jira] [Created] (OAK-8471) Initialization section for RDB DocumentStore page

Ryan Ashcraft created OAK-8471:
----------------------------------

             Summary: Initialization section for RDB DocumentStore page
                 Key: OAK-8471
                 URL: https://issues.apache.org/jira/browse/OAK-8471
             Project: Jackrabbit Oak
          Issue Type: Documentation
          Components: rdbmk
    Affects Versions: 1.14.0
            Reporter: Ryan Ashcraft


Recommend adding the following section modeled after the MongoDB DocumentStore page into the RDB DocumentStore page:
h1. Initialization

The following blurb may help people initialize a {{DocumentNodeStore}} with a {{RDBDocumentStore}} is using an OSGi container and configure the {{DocumentNodeStoreService}}. See corresponding [Repository OSGi Configuration|https://jackrabbit.apache.org/oak/docs/osgi_config.html].

Alternatively a RDB based DocumentNodeStore can be created with the help of a {{RDBDocumentNodeStoreBuilder}}.
{code:java}
// leverage a javax.sql.DataSource that connects to your database
DataSource jdbcDataSource = someDataSource; (e.g., DBCP)
DocumentNodeStore store = RDBDocumentNodeStoreBuilder.newRDBDocumentNodeStoreBuilder().setRDBConnection(jdbcDataSource).build();

// do something with the store
NodeState root = store.getRoot();

// dispose it when done
store.dispose();
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)