Uploaded image for project: 'Bitrepository'
  1. Bitrepository
  2. BITMAG-618

Use c3po for DB connection management

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 0.18
    • None
    • None
    • None
    • Hide

      Validate that a new settings structure is available for the databases, where the driver class, the database URL, the username and the password is available.

      It can be validated that it is the C3P0 interface, which is used for instantiating the databases, by looking in the log.
      It should contain something like:

      XX:XX:XXX DEBUG BasicResourcePool:1644 - trace com.mchange.v2.resourcepool.BasicResourcePool@322e0dcb [managed: 3, un
      used: 2, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@4139358c)

      Show
      Validate that a new settings structure is available for the databases, where the driver class, the database URL, the username and the password is available. It can be validated that it is the C3P0 interface, which is used for instantiating the databases, by looking in the log. It should contain something like: XX:XX:XXX DEBUG BasicResourcePool:1644 - trace com.mchange.v2.resourcepool.BasicResourcePool@322e0dcb [managed: 3, un used: 2, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@4139358c)

    Description

      In the NetarchiveSuite project we have switched to using the c3po framework for connection management, instead of using homegrown code. We should do the same in this project.

      Attachments

        Activity

          People

            jolf Jonas Lindberg Frellesen (Inactive)
            mss Mikis Seth Sørensen (Inactive)
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: