users@glassfish.java.net

Toplink 2nd level cache properties

From: <glassfish_at_javadesktop.org>
Date: Wed, 12 Dec 2007 06:01:02 PST

Hi,

There are some toplink extension that handle the 2nd level cache. One of these seem to be a @Cache annotation which enables you to configure how an entity is cached. Most of these things seem also to be possible to configure in the persistence.xml file. However, there is one thing I haven't been able to find and that is how to set the timeout of an object in the 2nd level cache. The @Cache annotation seem to have it but there seem to be no property for this to set in the persistence.xml. Anyone who knows if you only can set timeouts using the annotation?

Thanks!
[Message sent by forum member 'woel' (woel)]

http://forums.java.net/jive/thread.jspa?messageID=249718