hi I enabled jmx on my test server and I am monitoring jvm metrics like heap, thread etc but I can't monitor jdbc pool information. My context.xml file is below. can you write a jmx key example for this configuration. I tried many examples but allways getting error like ("Object or attribute not found: Catalina:type=javax.sql.DataSource,host=localhost, class=my.cryptoutils.ds.EncryptedDataSourceFactory ,name="MyDS"").
<Resource name="MyDS"
keysPropertiesPath="/data/config/qwe/"
auth="Application"
type="javax.sql.DataSource"
factory="my.cryptoutils.ds.EncryptedDataSourceFact ory"
testWhileIdle="true"
testOnBorrow="true"
testOnReturn="true"
validationQuery="SELECT 2 FROM DUAL"
validationInterval="30000"
timeBetweenEvictionRunsMillis="60000"
maxActive="40"
maxIdle="10"
minIdle="1"
maxWait="20000"
initialSize="10"
removeAbandonedTimeout="300"
removeAbandoned="true"
logAbandoned="true"
minEvictableIdleTimeMillis="30000"
jmxEnabled="true"
jdbcInterceptors="org.apache.tomcat.jdbc.pool.inte rceptor.ConnectionState;org.apache.tomcat.jdbc.poo l.interceptor.StatementFinalizer"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc
racle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(H OST=myhost.local)(PORT=1521))(CONNECT_DATA=(SERVER =dedicated)(SERVICE_NAME=myservice)))"
username="**********"
password="*******" />
<Resource name="MyDS"
keysPropertiesPath="/data/config/qwe/"
auth="Application"
type="javax.sql.DataSource"
factory="my.cryptoutils.ds.EncryptedDataSourceFact ory"
testWhileIdle="true"
testOnBorrow="true"
testOnReturn="true"
validationQuery="SELECT 2 FROM DUAL"
validationInterval="30000"
timeBetweenEvictionRunsMillis="60000"
maxActive="40"
maxIdle="10"
minIdle="1"
maxWait="20000"
initialSize="10"
removeAbandonedTimeout="300"
removeAbandoned="true"
logAbandoned="true"
minEvictableIdleTimeMillis="30000"
jmxEnabled="true"
jdbcInterceptors="org.apache.tomcat.jdbc.pool.inte rceptor.ConnectionState;org.apache.tomcat.jdbc.poo l.interceptor.StatementFinalizer"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc
racle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(H OST=myhost.local)(PORT=1521))(CONNECT_DATA=(SERVER =dedicated)(SERVICE_NAME=myservice)))"username="**********"
password="*******" />
Comment