Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8471

Initialization section for RDB DocumentStore page

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Documentation
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.14.0
    • Fix Version/s: None
    • Component/s: rdbmk
    • Labels:
      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();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ashcradr Ryan Ashcraft

              Dates

              • Created:
                Updated:

                Issue deployment