Re: Re: is there a hibernate-cache provider available on JOnAS 5.2 ?
"Hans J. Prueller" <[email protected]> Fri, 04 Feb 2011 10:05:47 +0100
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Organization | LBS logics GmbH |
| Message-ID | <1296810347.12761.6.camel@smithers> |
Florent, thank you for your reply. I did know that persistence provider can be switched from hibernate to eclipselink/toplink in jonas.properties, but I did not know that there are different providers for hibernate itself - whats the difference between hibernate and hibernate35 -- JPA1 and JPA2 ? The setting to enable the cache is: <property name="hibernate.cache.provider_class" value="org.hibernate.cache.EhCacheProvider"/> regards, hans Am Freitag, den 04.02.2011, 10:00 +0100 schrieb Florent BENOIT: > Hi Hans, > > Hans J. Prueller wrote: > > > Hi all, > > > > when I deploy my EAR using EJB3 / JPA with Hibernate as a > > persistence provider (which seems to be default in JOnAS anyway), > > You can switch the persistence provider in jonas.properties > (hibernate, hibernate3.5, eclipselink, etc) > > > > I get a ClassNotFoundException when enabling "EhCache" as > > Hibernate-Cache-Provider for second level caching. > > What's your setting to enable this cache ? > > > > > > > Seems like per default, no cache provider is activated/enabled for > > hibernate persistence on JOnAS 5.2 ?? > > > > > > Did I overlook something / what do I have to do to enable caching > > for Hibernate Persistence? (simply putting EhCache-JAR into > > LIB/EXT ???) > > > > regards, > > Hans > > > >