-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate 3.5.x - region cache access types missing
PostPosted: Fri Jun 11, 2010 6:32 pm 
Newbie

Joined: Thu Apr 29, 2010 12:54 pm
Posts: 1
I have been trying to replace our second level cache interface to use infinispan as second-level cache with hibernate. I followed
http://community.jboss.org/wiki/UsingInfinispanasJPAHibernateSecondLevelCacheProvider

See: org.hibernate.cache.infinispan.entity
But lamentably, my code fails since only read-only and transactional access types
for entity and collections have been implemented.

Is there any plan to support nonstrict-read-write and read-write? If so, when?
Any alternative?


Top
 Profile  
 
 Post subject: Re: Hibernate 3.5.x - region cache access types missing
PostPosted: Mon Jun 14, 2010 2:55 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Infinispan as 2L cache for Hibernate is designed to be transactional second-level implementation
(for this reason you must also use JTA),
therefore the only supported access types are read-only and transactional.
As far as I know there is no reason and therefore no plan to support nonstrict-read-write and read-write.
This because generally the tendency goes towards transactional access.
Also EHCache recently is doing efforts to support transactional access.
The solution in you case is simple: use transactional access instead to nonstrict-read-write and read-write.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.