Details
-
Documentation
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.14.0
-
None
-
None
Description
Recommend adding the following section modeled after the MongoDB DocumentStore page into the RDB DocumentStore page:
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.
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 store.dispose();