Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » (no subject)
(no subject) [message #686561] Wed, 22 June 2011 13:46
Markus KARG is currently offline Markus KARGFriend
Messages: 44
Registered: July 2009
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 {
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?)?

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

Current Time: Sat Apr 17 16:09:44 GMT 2021

Powered by FUDForum. Page generated in 0.02245 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top