openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abe White <>
Subject Re: Flush all caches?
Date Fri, 08 Dec 2006 18:24:29 GMT
1. You must use a new EntityManager for each test.

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.
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

View raw message