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

Make BasicDataSource.getConnectionPool() public to access GenericObjectPool.toString()/getStatsString()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.0
    • 2.10.0

    Description

      Hello,

      I'm developing a Application that is running on a default JRE without an Webserver/JMX.

      For optimizing Database connections it would be very useful if i could access

       

      BasicDataSource->GenericObjectPool->getStatsString()

       

      I don't see any reason why this Method is protected and not public in GenericObjectPool.

      Then BasicDataSource shoud provide a method getStatsString() or the values that represent the statistic data.

       

      If there is any other easy way to access this data within my Java Code I'll implement this if you could give me an example how to get this working easily. I don't want do configure any jmx stuff.

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Tux12Fun Thomas Freller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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