users@glassfish.java.net

Re: Is Toplinks second level cache cluster aware?

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Tue, 26 Jan 2010 15:08:58 +0100

2007/11/13 <glassfish_at_javadesktop.org>:
> It would be really nice if anyone could try to answer my previous question.
>
> I looked a bit at the JBoss/Hibernate 2nd level cache documentation and there seem to be some kind of coordination feature included there. Isn't Glassfish providing anything like that? I would really prefer to use Glassfish over JBoss but we probably need to use clustering and if there is no coordination between cluster nodes we might have to go for JBoss.
>
> Thanks!

As far as I can tell, all you can do with TopLink Essentials is to
disable L2 cache if you have distributed environment - that means if
you have EntityManagers in different JVMs connected to one database.

Of course you can choose different JPA provider with special
capabilities, for example, if I remember well, Hibernate can use
Terracota or something like this for L2 cache, but for the beginning I
would rather choose to disable L2 cache and observe if the performance
is good enough... This is how Hibernate is configured by default - no
L2.