Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-263

Use a queryTimeout for the validationQuery in PoolableConnectionFactory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.2, 1.2.1, 1.2.2
    • 1.3
    • None

    Description

      PoolableConnectionFactory.validateConnection(Connection conn) should use java.sql.Statement.setQueryTimeout(int) to avoid network problems and inappropriate validation queries. The timeout should either be a sensible default (say 5 secs) or be configurable.

      Links:

      Attachments

        1. DBCP-263-validationQuery.patch
          0.7 kB
          Christoph Grothaus

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cgro Christoph Grothaus
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0.5h
                  0.5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified