(no subject) [message #686561] |
Wed, 22 June 2011 13:46 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.02470 seconds