Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » Persistence Context caching and synchronization(With multiple RCP applications using same networked database, how to manage persistence context?)
Persistence Context caching and synchronization [message #835256] Tue, 03 April 2012 01:17 Go to next message
John Steele is currently offline John SteeleFriend
Messages: 50
Registered: January 2010
Member
When multiple RCP applications access a networked database how do you manage the peristence contenxt so that client's don't have stale or inconsistent data?

If each RCP application manages it's own persistent unit (EMF) and context (EM) how do you synchronize with the database when another client commits changes? Is this type of functionality built into EclipseLink using caching or locking?

I would appreciate any thoughts, ideas, or feedback.
John Steele
Re: Persistence Context caching and synchronization [message #835278 is a reply to message #835256] Tue, 03 April 2012 02:08 Go to previous message
Michael Keith is currently offline Michael KeithFriend
Messages: 243
Registered: July 2009
Senior Member
Hi John,

If the changes to the database are coming from other clients that are using EclipseLink sessions in other applications then something like Cache coordination might work for you (see http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/sandbox/caching/Cache_Coordination). If the DB changes are happening through other external applications then you might need to do more cache refreshing or make more careful use of the cache through eviction, and timeouts, etc. Either way, the tools available within EclipseLink should be able to help you, although I would recommend posting to the EclipseLink forum to get specific help with any particular questions or problems you may have in that area.

-Mike
Previous Topic:[Gemini JPA] How would be the best way to implement fetch pagination in a OSGi Persistence service
Next Topic:Access EntityManagerFactory from Declarative Service?
Goto Forum:
  


Current Time: Tue Mar 19 07:13:18 GMT 2024

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

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

Back to the top