tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matej <gma...@gmail.com>
Subject Re: Java Melody
Date Mon, 13 Mar 2017 09:26:49 GMT
Thank you. I got it working with your help.

I have 2 datasources, controlled by pom, I had a mistake.

Also it seems you have to have driverClassName set but JdbcDriver is not
required. I thought JdbcDriver is a Tomee thing and driverClassName a
Tomcat.

But anyway the example works.

Thanks.

2017-03-12 8:36 GMT+01:00 cocorossello <cocorossello@gmail.com>:

> 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&amp;
> characterEncoding=utf8mb4_unicode_ci&amp;useUnicode=true&amp;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.
>

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