commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Biacco <abia...@handll.com>
Subject [dbcp] JMX mbean doesn't exist after upgrade to 2.1/2.1.1
Date Sat, 05 Dec 2015 09:07:40 GMT
I was running dbcp 2.0.1 with pool 2.4.2.
I updated dbcp to 2.1 and the mbean org.apache.commons.pool2 doesn't exist
anymore. 2.1.1 is a no-go as well
I'm running under Tomcat 8.0.28

Could this have to do with: https://issues.apache.org/jira/browse/DBCP-434 ?

Example of one of my resources is:

        <Resource
                name="jdbc/NAME" auth="Container"
type="javax.sql.DataSource"
                factory="org.apache.commons.dbcp2.BasicDataSourceFactory"
                username="USERNAME"
                password="PASSWORD"
                driverClassName="com.mysql.jdbc.Driver"
                url="URL"
                initialSize="5"
                minIdle="5"
                maxIdle="20"
                maxTotal="50"
                maxWaitMillis="4000"
                testOnBorrow="true"
                testWhileIdle="true"
                blockWhenExhausted="true"
                numTestsPerEvictionRun="20"
                timeBetweenEvictionRunsMillis="120000"
                softMinEvictableIdleTimeMillis="119000"
                minEvictableIdleTimeMillis="-1"
                validationQuery="/* ping */"
                validationQueryTimeout="2"
                removeAbandoned="true"
                removeAbandonedOnBorrow="true"
                removeAbandonedTimeout="60"
                logAbandoned="true"
        />

Thanks,

-Tony

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message