openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <>
Subject Re: Flush all caches?
Date Fri, 08 Dec 2006 18:44:12 GMT
On Dec 8, 2006, at 10:24 AM, Abe White wrote:

> 1. You must use a new EntityManager for each test.

Other than the cost of not having a cache (which is what I want), it  
is expensive to be creating a new EntityManager for each transaction?

> 2. If you have the DataCache enabled, you'll have to clear it.  You  
> can do that through:
> ((OpenJPAEntityManagerFactory) emf).getStoreCache().evictAll();
> 3. There is no way to clear the cache on cluster node B from  
> cluster node A; you have to clear each separately.

Looking at the docs... is this what the "Remote Event Notification  
Framework" is used for?


View raw message