ehcache « Transaction « JPA Q&A





1. Hibernate 2nd level cache not caching committed entities    stackoverflow.com

I'm wondering if it's possible for Hibernate second level cache (we're using EHCache) to allow an application to cache an Entity that has been comitted to the DB if it knows ...

2. Hibernate/Ehcache: evicting collections from 2nd level cache not synchronized with other DB reads    stackoverflow.com

I have an application using JPA, Hibernate and ehcache, as well as Spring's declarative transactions. The load on DB is rather high so everything is cached to speed things up, including collections. Now ...

3. Avoiding multiple repopulations of the same cache region (due to concurrency)    stackoverflow.com

I have a high traffic website and I use hibernate. I also use ehcache to cache some entities and queries which are required to generate the pages. The problem is "parallel cache ...

4. Hibernate 2nd level cache invalidation when another process modifies the database    stackoverflow.com

We have an application that uses Hibernate's 2nd level caching to avoid database hits. I was wondering if there is some easy way to invalidate the Java application's Hibernate 2nd level ...

5. Different cache concurrent strategies for root entity and its collection (Hibernate with EHCache)?    stackoverflow.com

Given example from Hibernate docs and modifying it so that root level entity (Customer) is read-only while one of its collections (tickets) is read-write:

@Entity
@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
public class Customer { ...

6. Hibernate 2nd level cache ObjectNotFoundException with a high number of concurrent transactions    stackoverflow.com

We have a Java application that uses MySQL, Hibernate (3.5.1-Final) and EHcache(1.2.3) for our 2nd level cache. Our hibernate.properties isolation level is Read-committed isolation = 2

# 2-Read committed isolation 
hibernate.connection.isolation=2
Under a high ...

7. Does Ehcache 2.1 support the transactional cache concurrency strategy in Hibernate 3.3.2GA?    stackoverflow.com

Does Ehcache 2.1 now support the transactional cache concurrency strategy in Hibernate 3.3.2GA? That is, does Hibernate, when configured to use Ehcache 2.1 as its cache ...

8. Problems with: A soft-locked cache entry was expired by the underlying Ehcache    stackoverflow.com

I'm getting following warning and I have no idea what to do about it. There is about 80000 entries that write this warning into catalina.out log file in tomcat every time ...

9. A soft-locked cache entry was expired by the underlying Ehcache    stackoverflow.com

Hibernate 3.3.x, ehcache 2.2.x

The following error occurs, when I try to publish a lots of users in a single go. Any idea on why this ...





10. Debugging Hibernate/Ehcache deadlock    stackoverflow.com

We are using Ehcache version 2.4.4 with Hibernate 3.5.5-FINAL. I've got a strange case happening on my debug environment - it looks like Ehcache is getting into a deadlock. Here's the ...

11. Are Hibernate Pessimistic Locks Distributed with EHCache/Terracotta?    stackoverflow.com

Can Hibernate implement pessimistic locking at the start of a Java transaction, or does it instead rely on a pessimistic lock being applied when all the work in the Java realm ...

12. converting programatic pessimistic lock on Hibernate entity to pessimistic lock on cached entity    forums.terracotta.org

currently the system pessimisticly locks and entity for update as below: entity = (Session) entityManager.getDelegate().load(type, id, LockMode.UPGRADE); With this mode, Hibernate will load the Entity using a SELECT...FOR UPDATE, thus locking the retrieved rows in the database until theyre released when the transaction end I would like to get the same behaviour using terracotta/ehcached entities (rather than the database). currently I ...

13. Hibernate, EhCache & TransactionManager    forum.hibernate.org

Hi, I'm new here. I wanted to upgrade my application to hibernate 3.6.0.Final. So I also upgraded the ehcache to ehcache-core 2.3.0. Now, I'm getting an exception while starting my tests: Code: Caused by: java.lang.NoSuchMethodError: net.sf.ehcache.config.Configuration.setDefaultTransactionManager(Ljava/lang/Object;)V at net.sf.ehcache.hibernate.EhCacheRegionFactory.start(EhCacheRegionFactory.java:70) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:236) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1842) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732) ...

14. EHCache and concurrency    forum.hibernate.org

I'm about to move to a inter-session cache for performance tuning. Thinking through the implications it occurs to me that this might change the basic mechanism for object instantiation within a hibernate Session. Which in turn, raised the following question: Does using a cache interfere with Hibernate's concurrency (aka, version) features? Does it change which types of concurrency (e.g., version="dirty") are ...

15. Threads Locking (Weblogic/Hibernate/EHCache)    forum.hibernate.org

Login Register FAQ Search View unanswered posts | View active topics Board index Hibernate & Java Persistence Hibernate Users All times are UTC - 5 hours [ DST ] Threads Locking (Weblogic/Hibernate/EHCache) Page 1 of 1 [ 1 post ] Previous topic | Next topic ...

16. ehcache compatible with transactions?    forum.hibernate.org