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
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 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.

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: Fri Apr 20 22:39:45 GMT 2018

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

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