jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Ashcraft (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-8471) Initialization section for RDB DocumentStore page
Date Wed, 10 Jul 2019 15:17:00 GMT
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}}.
// 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

This message was sent by Atlassian JIRA

View raw message