I deleted the @Cache from my entity, and checked on JMX the persistance-unit
properties, and indeed the configuration from properties it is not there.
any of the folloing properties are there:
      <property name="hibernate.dialect"
value="org.hibernate.dialect.MySQLInnoDBDialect"/>
      <property name="hibernate.connection.url"
value="jdbc:mysql://localhost:3306/polyglong"/>
      
      
      
      <property name="hibernate.cache.region.factory_class"
value="org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory"/>
      
      <property name="hibernate.cache.use_second_level_cache" value="true"/>
      <property name="hibernate.cache.use_query_cache" value="true"/>

      <property name="hibernate.generate_statistics" value="true"/>
      <property name="net.sf.ehcache.configurationResourceName"
value="/ehcache.xml"/>

      <property name="hibernate.connection.driver_class"
value="com.mysql.jdbc.Driver"/>
      <property name="hibernate.connection.username"/>
      <property name="hibernate.connection.password"/>

Maybe because it is being overritten by the Resource from tomee.xml?



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/Error-when-using-EH-Cache-with-Hibernate-tp4681560p4681584.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Reply via email to