Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Invalidate Shared Cache(How to invalidate shared cache on demand)
Invalidate Shared Cache [message #539054] Wed, 09 June 2010 13:51 Go to next message
Sven Hoffmann is currently offline Sven HoffmannFriend
Messages: 18
Registered: July 2009
Junior Member
I'm looking for the best way to invalidate the shared cache of a persistence unit with EclipseLink (Version 2.0.2) on demand.

@Cache provides options to invalidate the cache on a regular bases but not on demand.

Thanks,
Sven

[Updated on: Wed, 09 June 2010 13:57]

Report message to a moderator

Re: Invalidate Shared Cache [message #539231 is a reply to message #539054] Thu, 10 June 2010 06:12 Go to previous message
Doug Clarke is currently offline Doug ClarkeFriend
Messages: 155
Registered: July 2009
Senior Member
If you are using the JPA 2.0 interfaces I would suggest trying

EntityManagerFactory.getCache().evict*

http://www.eclipse.org/eclipselink/api/2.0.2/javax/persisten ce/Cache.html

Doug
Previous Topic:Problem on EclipseLink JPA Weaving using Toplink session.xml, project.xml as JPA Source
Next Topic:Select count(*)
Goto Forum:
  


Current Time: Thu Apr 25 10:40:43 GMT 2024

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

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

Back to the top