Hi John, To setup the ObjectGrid as L2 cache following are the setting that you are supposed to set in persistence.xml :
<property name="openjpa.DataCache" value="com.ibm.websphere.objectgrid.openjpa.ObjectGridDataCache(ObjectGridName=Anyname,ObjectGridType=EMBEDDED, numberOfPartitions=1,replicaMode=NONE,replicaReadEnabled=false)"/> <property name="openjpa.RemoteCommitProvider" value="sjvm"/> <property name="openjpa.QueryCache" value="com.ibm.websphere.objectgrid.openjpa.ObjectGridQueryCache(ObjectGridName=Anyname)"/> The ObjectGridType can be changed to EMBEDDED or EMBEDDED_PARTITION(to support partitioned cache) or REMOTE(If the objectgrid is on remote machine). Hope this helps. ----Sandhya --- On Thu, 10/30/08, John VanAntwerp <[EMAIL PROTECTED]> wrote: From: John VanAntwerp <[EMAIL PROTECTED]> Subject: L2 Cache in OpenJPA on WebSphere Cluster To: [email protected] Date: Thursday, October 30, 2008, 12:47 PM I was wondering if anyone has had experience setting up JPA on WebSphere to support the L2 cache in a clustered environment? The IBM documentation says to use the ObjectGrid JPA plug-in, but I can't find any documentation on what the settings are/what properties to use either in the JPA documentation or the ObjectGrid documentation. Thanks! - John -- View this message in context: http://n2.nabble.com/L2-Cache-in-OpenJPA-on-WebSphere-Cluster-tp1400222p1400222.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
