Re: refresh()
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > Re: refresh()




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: refresh()  
Craig Russell


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-01-07 06:11 PM

Hi Christiaan,

The behavior you describe is consistent with the specification. The
second level cache is intended to be transparent to the application in
most cases.

If you are getting optimistic failures, it might be good to try
flush() within your application, and then refresh with the optimistic
exception parameter, which will refresh all of the failed objects. If
flush followed by refresh doesn't invalidate the second level cache
for the failed objects and go to the datastore, then there is an
issue.

Perhaps if you can explain why this behavior doesn't work for your
application we can take a closer look at the issue.

Best regards,

Craig

Hi,

I frequently encounter the situation in which I need the latest data
from the datastore, for instance to avoid optimistic verification
exceptions. According to the spec I would say that
PersistenceManager.refresh() is the right job for this "Refresh the
state of the instance from the data store." However, the JDO
implementation I use has a Level 2 datastore cache and I noticed that
the refresh() not refreshes() the data from the datastore but from the
datastore cache. I've discussed this with them and their argument is
that the datacache is being treated as the datastore. Is this according
to the spec?



Kind regards,

Christiaan






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:51 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register