Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » (no subject)
(no subject) [message #686561] Wed, 22 June 2011 09:46
Markus KARG is currently offline Markus KARG
Messages: 44
Registered: July 2009
Member
We have to live with TopLink Essentials for another while so we have to ask a question for this outdated software. Sorry...

As we have to access our database with a third party software parallel to the TopLink Essentials access, we have to tell TopLink Essentials to always reload the cache content from the DB.

We did this using this code:
public class AlwaysRefreshCacheDescriptorCustomizer implements DescriptorCustomizer {
public void customize(ClassDescriptor cd) throws Exception {
cd.setShouldAlwaysRefreshCache(true);
cd.setShouldDisableCacheHits(true);
}
}
This works in the most cases, but we noticed that there are some situations where the cache still is not getting refreshed. So we changed to use this code instead, which is working very well always:
<property name="toplink.cache.type.MyEntity" value="NONE" />
Reading the description of both we are uncertain what the difference between both methods is, and what we shall do now: Stay with the new code (which is not what the TopLink Essentials documentation wants us to do), or change the old code in some way (which way?)?

Thanks!
Markus
Previous Topic:OptimisticLockException
Next Topic:Dali Java Persistence Tools 3.0 released
Goto Forum:
  


Current Time: Thu Jul 31 21:49:27 EDT 2014

Powered by FUDForum. Page generated in 0.01678 seconds