Just define the datasource with the javamelody JdbcDriver. Mine is defined in
resources.xml
<Resource id="myDataSource" type="DataSource">
DriverClassName net.bull.javamelody.JdbcDriver
ConnectionProperties driver=org.mariadb.jdbc.Driver;
JdbcDriver org.mariadb.jdbc.Driver
InitialSize 5
MaxActive 100
MaxIdle 30
MaxWait 10000
ValidationInterval 30000
Name jdbc/mydatasource
Password pass
ValidationQuery select 1
TestOnBorrow true
Username root
jdbcUrl
jdbc:mysql://localhost:3306/mydb?zeroDateTimeBehavior=convertToNull&characterEncoding=utf8mb4_unicode_ci&useUnicode=true&useConfigs=maxPerformance
</Resource>
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/Java-Melody-tp4681253p4681284.html
Sent from the TomEE Users mailing list archive at Nabble.com.