Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Cache expiry time

Hi Tom,

Thanks for the advice. I got what I wanted working using a session customizer :)

Mark

Tom Ware wrote:
Hi Mark,

  The following documentation should give you a good place to start:

http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#How_to_Use_the_.40Cache_Annotation

As for a default cache expiry setting for your whole application, that is currently not available. It would, however, be fairly easy to write a SessionCustomizer that could iterate through the descriptors and apply an expiry property to each or them. Here is the information about SessionCustomizers:

http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#Using_EclipseLink_JPA_Extensions_for_Customization_and_Optimization


-Tom

Mark Robinson wrote:
Hi,

I'd like to be able to set the cache expiry time for all my objects for the whole application. Can I do this through persistence.xml or sessions.xml?

Mark

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.11.15/2004 - Release Date: 03/16/09 07:04:00



--
Mark Robinson - Mizar LLC
mark.robinson@xxxxxxxxx
111-1010 McKenzie Ave.
Victoria, BC
V8X 4B2
(250) 588-8321



Back to the top