Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-04-21 10:54 GMT+02:00 cri_sys <[email protected]>:

> Thanks of the suggestion, I managed to run the app after long time looking
> for the solution.
> It looks that the configuration on persistance.xml was never being setter
> or
> being overwritten.
>

you should be able to check it in JMX, persistence units are listed normally


> My solution was to set:
> hibernate.cache.region.factory_class =
> org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
> on the system.properties in the conf file from tomee.
>
> Now the app it is running but it looks that my queries are never hitting
> the
> cache and it is always quering the DB even though i am annotating my entity
> with @Cachable and @Cache. Any suggestion?
>
>
Looks like you can still hit a conflict or packaging issue as mentionned
before, didnt you check both? Can you share a sample on github reproducing
it?


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

Reply via email to