Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-695

Separate DatabaseManager from registering / creating database pool, allow datasource to be retrieved from JNDI

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.0
    • Component/s: None
    • Labels:
      None
    • Attachments:
      1
    • Comments:
      0
    • Documentation Status:
      Needed

      Description

      Change DatabaseManager to use a Datasource instead of the DriverManager methods.

      Separate the registering of the database driver / pool into a separate class that returns a new DataSource (this mainly facilitates removing the -dbcp, -pool and driver jars from the web application in the case that you are retrieving a pre-configured database resource from JNDI.

      Will fallback when JNDI not detected to manually create a pool from the dspace.cfg (for offline tasks).

        Attachments

          Activity

            People

            Assignee:
            grahamtriggs Graham Triggs
            Reporter:
            grahamtriggs Graham Triggs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: