You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by John VanAntwerp <jv...@umuc.edu> on 2008/10/30 20:47:54 UTC
L2 Cache in OpenJPA on WebSphere Cluster
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.
Re: L2 Cache in OpenJPA on WebSphere Cluster
Posted by Sandhya Kishore <tu...@yahoo.com>.
Hi John.
The following link has details of Synchronous and Asynchronous replication behavior in Objectgrid.
http://www.ibm.com/developerworks/wikis/display/objectgridprog/Replication+architecture
May be once you read this you can be able to decide which replication strategy to use.
Thanks
---Sandhya
--- On Tue, 11/4/08, John VanAntwerp <jv...@umuc.edu> wrote:
From: John VanAntwerp <jv...@umuc.edu>
Subject: Re: L2 Cache in OpenJPA on WebSphere Cluster
To: users@openjpa.apache.org
Date: Tuesday, November 4, 2008, 8:37 PM
Thanks for the help!
We have a small cluster with 6 nodes and 2 servers per node defined. We're
wondering what the best replication strategy will be? Synchronous?
Asynchronous? Can someone explain why one would be chosen over the other?
Thanks!
- John
Kevin Sutter wrote:
>
> John,
> The actual ObjectGrid plugin is going to be available with the
> 6.1.0.3release of ObjectGrid (Extreme Scale). The formal, public
> documentation is
> still being finalized, but should be posted very soon from the ObjectGrid
> wiki (
>
http://www.ibm.com/developerworks/wikis/display/objectgridprog/ObjectGrid+6.1+Fix+Pack+3+contents
> ).
>
> I will also point out that the best performing configuration is with the
> EMBEDDED option. Although the other configuration options may be more
> scalable (depending on your requirements), a distributed cache will
> involve
> some overheard due to the RPC calls. The soon-to-be-released
> documentation
> has all of these options clearly explained.
>
> Until the documentation becomes available, feel free to post additional
> questions concerning the ObjectGrid configuration. Either Sandhya or
> myself
> should be able to help you out.
>
> Thanks,
> Kevin
>
> On Thu, Oct 30, 2008 at 10:13 PM, John VanAntwerp
> <jv...@umuc.edu>wrote:
>
>>
>>
>> Great info, thanks! This at least gets me started. Do you know any
>> place
>> that has more complete documentation on the settings?
>>
>> Thanks again!
>> - John
>> --
>> View this message in context:
>>
http://n2.nabble.com/L2-Cache-in-OpenJPA-on-WebSphere-Cluster-tp1400222p1401709.html
>> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context:
http://n2.nabble.com/L2-Cache-in-OpenJPA-on-WebSphere-Cluster-tp1400222p1458737.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: L2 Cache in OpenJPA on WebSphere Cluster
Posted by John VanAntwerp <jv...@umuc.edu>.
Thanks for the help!
We have a small cluster with 6 nodes and 2 servers per node defined. We're
wondering what the best replication strategy will be? Synchronous?
Asynchronous? Can someone explain why one would be chosen over the other?
Thanks!
- John
Kevin Sutter wrote:
>
> John,
> The actual ObjectGrid plugin is going to be available with the
> 6.1.0.3release of ObjectGrid (Extreme Scale). The formal, public
> documentation is
> still being finalized, but should be posted very soon from the ObjectGrid
> wiki (
> http://www.ibm.com/developerworks/wikis/display/objectgridprog/ObjectGrid+6.1+Fix+Pack+3+contents
> ).
>
> I will also point out that the best performing configuration is with the
> EMBEDDED option. Although the other configuration options may be more
> scalable (depending on your requirements), a distributed cache will
> involve
> some overheard due to the RPC calls. The soon-to-be-released
> documentation
> has all of these options clearly explained.
>
> Until the documentation becomes available, feel free to post additional
> questions concerning the ObjectGrid configuration. Either Sandhya or
> myself
> should be able to help you out.
>
> Thanks,
> Kevin
>
> On Thu, Oct 30, 2008 at 10:13 PM, John VanAntwerp
> <jv...@umuc.edu>wrote:
>
>>
>>
>> Great info, thanks! This at least gets me started. Do you know any
>> place
>> that has more complete documentation on the settings?
>>
>> Thanks again!
>> - John
>> --
>> View this message in context:
>> http://n2.nabble.com/L2-Cache-in-OpenJPA-on-WebSphere-Cluster-tp1400222p1401709.html
>> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://n2.nabble.com/L2-Cache-in-OpenJPA-on-WebSphere-Cluster-tp1400222p1458737.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: L2 Cache in OpenJPA on WebSphere Cluster
Posted by Kevin Sutter <kw...@gmail.com>.
John,
The actual ObjectGrid plugin is going to be available with the
6.1.0.3release of ObjectGrid (Extreme Scale). The formal, public
documentation is
still being finalized, but should be posted very soon from the ObjectGrid
wiki (
http://www.ibm.com/developerworks/wikis/display/objectgridprog/ObjectGrid+6.1+Fix+Pack+3+contents
).
I will also point out that the best performing configuration is with the
EMBEDDED option. Although the other configuration options may be more
scalable (depending on your requirements), a distributed cache will involve
some overheard due to the RPC calls. The soon-to-be-released documentation
has all of these options clearly explained.
Until the documentation becomes available, feel free to post additional
questions concerning the ObjectGrid configuration. Either Sandhya or myself
should be able to help you out.
Thanks,
Kevin
On Thu, Oct 30, 2008 at 10:13 PM, John VanAntwerp <jv...@umuc.edu>wrote:
>
>
> Great info, thanks! This at least gets me started. Do you know any place
> that has more complete documentation on the settings?
>
> Thanks again!
> - John
> --
> View this message in context:
> http://n2.nabble.com/L2-Cache-in-OpenJPA-on-WebSphere-Cluster-tp1400222p1401709.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>
>
Re: L2 Cache in OpenJPA on WebSphere Cluster
Posted by John VanAntwerp <jv...@umuc.edu>.
Great info, thanks! This at least gets me started. Do you know any place
that has more complete documentation on the settings?
Thanks again!
- John
--
View this message in context: http://n2.nabble.com/L2-Cache-in-OpenJPA-on-WebSphere-Cluster-tp1400222p1401709.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: L2 Cache in OpenJPA on WebSphere Cluster
Posted by Sandhya Kishore <tu...@yahoo.com>.
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 <jv...@umuc.edu> wrote:
From: John VanAntwerp <jv...@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.