persistence@glassfish.java.net

Re: TopLink Cluster Documentation

From: Eduardo Pelegri-Llopart <pelegri_at_sun.com>
Date: Wed, 30 Aug 2006 10:19:43 -0700

I find it a bit hard to track what is what. From the phrasing in the
email I thought you were describing features in the "Top Link" product
that are not in "TopLink Essentials", which is the component in Project
GlassFish. But, when I followed the link, it seems to refer to the Top
Link Essentials implementation.

Can somebody clarify?

Thanks,

        - eduard/o

Doug Clarke wrote:
> Peter,
>
> TopLink's default caching is to cache entities in its shared cache, container within the server session. This shared cache spans entity managers and transactions.
>
> As shown in table 1-2 of Tom's second link there are two persistence unit properties of interest:
>
> toplink.cache.shared.default - the default caching used for all entity types. Setting this to false will put you in a cache per EntityManager (client session) with no sharing between clients.
>
> toplink.cache.shared.<ENTITY> - allows you to use a different setting per entity type then the default.
>
> Cheers,
>
> Doug
>
> -----Original Message-----
> From: Peter Havelaar [mailto:peter-java_net_at_jabbah.net]
> Sent: Wednesday, August 30, 2006 11:34 AM
> To: persistence_at_glassfish.dev.java.net
> Subject: Re: Toplink Cluster Documentation
>
>
> Thank you Tom,
>
> I see when persisting an object it gets written to the session cache of the
> parent server.
> How do you configure Toplink to have a session server and clients?
>
> Regards,
> Peter
>
> ----- Original Message -----
> From: "Tom Ware" <tom.ware_at_oracle.com>
> To: <persistence_at_glassfish.dev.java.net>
> Sent: Wednesday, August 30, 2006 3:56 PM
> Subject: Re: Toplink Cluster Documentation
>
>
> Hi Peter,
>
> TopLink Essentials does not currently include any specific clustering
> support. Its caching functions in a cluster through effective configuration
> of optimistic locking, cache type/size, and query refreshing.
>
> Here is a good article describing the core locking/caching functionality of
> TopLink -
> http://www.oracle.com/technology/tech/java/newsletter/articles/toplink/toplink_caching_locking.html
>
> For details of how to configure TopLink Essential's caching see -
> http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-extensions.html#TopLinkCaching
>
>
> -Tom
>
> Peter Havelaar wrote:
>
>
>>Hello guys,
>>
>>I have been trying to find the documentation of how to setup a cluster
>>configuration with Toplink JPA in glassfish.
>>Can anyone point me in the right direction?
>>And how does Toplink's cluster capabilities integrate with Glassfish's
>>V2 new cluster abilities.
>>
>>Regards,
>>Peter Havelaar
>
>
>