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 Hoffmann
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 Clarke
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: Wed Sep 03 04:53:59 GMT 2014

Powered by FUDForum. Page generated in 0.02501 seconds