Depending your version and the pool you use (tomcat-jdbc by default or commons-dbcp) names can be a bit different but all setters of the datasource (pool version) are available in resource properties so http://commons.apache.org/proper/commons-dbcp/configuration.html are usable directly in <Resource/> block. See also http://tomee.apache.org/datasource-config.html
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> 2016-03-03 16:18 GMT+01:00 mauro2java2011 <[email protected]>: > i wolid set : > > testOnBorrow =true > > and validationQuery =select 1 > > into a datasouce declaration on tomee.xml > > how set it? > with jdbcurl? > or how? > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/how-set-propwerties-of-datasource-mysql-tp4677759.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
