Declare both in tomee.xml and reference them in persistence.xml.
Le 4 avr. 2013 19:57, "mauro2java2011" <[email protected]> a écrit :

> Finally i have to declare the  non JTA datasource only into the tomee.xml
> or
> resources.xml with
>  JtaManaged false
>
>  or also into the persistence.xml?
> into the response above it is set only the <jta-data-souce>
>
> The following properties i have to set it into the declaration of resource
> for mysql? or if i not declare it ,  the value of  properties for default
> how it is?
>
>  .................................................
>   jmxEnabled true
>   LogSql false
>   InitialSize 10
>   MaxActive 100
>   MaxIdle 30
>   MaxWait 10000
>   minIdle 10
>   suspectTimeout 60
>   removeAbandoned true
>   removeAbandonedTimeout 180
>   timeBetweenEvictionRunsMillis 30000
>   jdbcInterceptors=StatementCache(max=128)
> ...................................................
>
> what it is the:
>   jmxEnable true???
> what it is the:
> jdbcInterceptors=StatementCache(max=128)  ?????
>
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/web-application-not-work-with-db-mysql-and-derby-tp4661958p4662000.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to