openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandhya Kishore <turagasa...@yahoo.com>
Subject Re: L2 Cache in OpenJPA on WebSphere Cluster
Date Thu, 30 Oct 2008 21:56:52 GMT
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 <jvanantwerp@umuc.edu> wrote:
From: John VanAntwerp <jvanantwerp@umuc.edu>
Subject: L2 Cache in OpenJPA on WebSphere Cluster
To: users@openjpa.apache.org
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.




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