0 Replies Latest reply on Sep 9, 2005 11:09 AM by Robert Costanzo

    Entity EJB Caching Timeout Question for JBoss 3.2.7

    Robert Costanzo Newbie

      Does anybody know how to configure the CMP Entity EJB's cache to timeout a row after it hasn't been accessed for a period of time? In my application, we cache lots of objects (one of which is a consumer object). So for every consumer which comes to the site, their specific row is cached. However, a consumer's object should really expire from the cache after around 30 mintues since it will no longer be used. What I see happening is it lives in the cache forever (or until the cache fills up and it gets kicked out). So even after a full garbage collection, 60-80% of my heap is still used due to these large caches of mostly unused objects.

      Thanks.

      -Rob