Re: Re: Re: Re: is there a hibernate-cache provider available on JOnAS 5.2 ?

"Hans J. Prueller" <[email protected]> Fri, 04 Feb 2011 15:31:24 +0100
Newsgroups gmane.comp.java.objectweb.jonas
Organization LBS logics GmbH
Message-ID <1296829884.2077.22.camel@kodos>
Florent,

using  <property name="hibernate.cache.provider_class"
value="net.sf.ehcache.hibernate.EhCacheProvider"/>


worked,

thank you!

regards,
hans





Am Freitag, den 04.02.2011, 10:18 +0100 schrieb Florent BENOIT:

> Hans J. Prueller wrote: 
> 
> > 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 ?
> > 
> 
> Yes, JPA1 or JPA2. When enabling hibernate 3.5, you have also JPA 2.0
> API available in your applications (don't forget to enable also
> validation service)
> 
> 
> 
> > The setting to enable the cache is:
> > 
> > <property name="hibernate.cache.provider_class"
> > value="org.hibernate.cache.EhCacheProvider"/>
> 
> 
> Could you try with 
> <property name="hibernate.cache.provider_class"
> value="net.sf.ehcache.hibernate.EhCacheProvider"/>
> 
> Also, I think that the property "hibernate.cache.region.factory_class"
> may be used now
> 
> Regards,
> 
> Florent
> 
> > 
> > 
> > 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
> > > > 
> > > 
> > > 
> > 
> > 
> 
>