openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Sutter <kwsut...@gmail.com>
Subject Re: Data cache resource usage
Date Mon, 03 Dec 2012 20:53:10 GMT
Hi Don,
Yes, OpenJPA spins off a daemon thread that sleeps and wakes up based on
your configuration.  If you are interested in more detail on how this
works, I'd suggest looking at the following code part:

org.apache.openjpa.datacache.ClearableScheduler

Thanks,
Kevin

On Fri, Nov 30, 2012 at 3:00 PM, kostellodon <donald.g.kostello@citi.com>wrote:

> I am using OpenJPA 1.2.3 and am enabling the data cache.  I'm setting up
> the
> refresh so that it will clear the cache once per day using the cron-like
> setting.  How is OpenJPA going to do this?  Is it going to create a
> separate
> thread that will sleep and wake up, is there some code running checking the
> clock, or ???
>
> Thanks for any help.
>
> Don
>
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Data-cache-resource-usage-tp7582024.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message