Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-313

Allow to configure DB persistence managers through JDNI

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9, 1.0
    • 1.1
    • None
    • None

    Description

      Currently, DB persistence managers have hardcoded urls. Even more, they will use a single connection with the drawbacks that this have regarding concurrency, performance and transactionality.

      It would be fairly better to allow to configure DB persistence managers through JDNI references to DataSource. So giving responsability to application server. Concurrency, performance and transactionability will be highly boosted with this approach.

      This could be a sample configuration :

      <PersistenceManager class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
      <param name="dataSource" value="jdbc/JackrabbitDS"/>

      .... think also about a way to pass params to data source, it should be simple ....

      <param name="schema" value="mysql"/>
      <param name="schemaObjectPrefix" value="${
      wsp.name}_"/>
      <param name="externalBLOBs" value="false"/>
      </PersistenceManager>

      Attachments

        1. dbpm-jndi.patch
          2 kB
          Jukka Zitting

        Issue Links

          Activity

            People

              jukkaz Jukka Zitting
              mpermar Martin Perez
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: