openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: EntityManagerFactory clearing caches on close()?
Date Thu, 03 Feb 2011 17:14:00 GMT
Alex -

Hmmm, by any chance are you using the ehcache plugin? If so, it is probably
an issue with the plugin implementation. AFAIK with the built in query cache
we don't distribute the QueryCache.

Thanks,
Rick

On Thu, Feb 3, 2011 at 10:58 AM, Alex Snaps <alex.snaps@gmail.com> wrote:

> Hi guys,
> I've not investigated that much at the code level yet, but it seems
> EntityManagerFactory.close() calls AbstractQueryCache.close() which in
> turn calls clearInternal(). As a result a distributed query cache ends
> up cleared when a node is shut down. This only seems to happen on the
> query cache though. Is it meant that way? If so, does that mean a
> query cache shouldn't be clustered?
> Thanks,
> Alex
>
> --
> Alex Snaps <alex.snaps@gmail.com>
> Senior Software Engineer - Terracotta
> http://twitter.com/alexsnaps
> http://www.linkedin.com/in/alexsnaps
>

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