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

Initialization section for RDB DocumentStore page

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.14.0
    • None
    • rdbmk
    • 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

            Unassigned Unassigned
            ashcradr Ryan Ashcraft
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: