openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <>
Subject Re: [jira] Created: (OPENJPA-943) How to configure cache synchronization in the case of multiple jvm in same machine
Date Thu, 26 Feb 2009 11:16:50 GMT

  <property name="kodo.RemoteCommitProvider" value="wls-cluster"/>
L2 Cache synchronization with "wls-cluster" is a BEA proprietary feature and
not part of OpenJPA per se.
So official support channels are the right place to get correct information.
I will share few data points because of my earlier association with
developing "wls-cluster".
"wls-cluster" uses the same multicast transport that the cluster of Weblogic
instances use to communicate between themselves. As two nodes of the cluster
can run in the same machine, so *should* "wls-cluster". It had been tested
with nodes running in the same machine. What error are you seeing with
"wls-cluster" for multiple jvm in the same machine? 

  Other common OpenJPA protocols such as TCP also runs on the same machine
between multiple jvms. Please look at the manual on how to configure the
sender and listener ports properly for such communication to work. When
using TCP, it is upto the developer/deployer to configure separate
sender/listener ports for each L2 cache RCP correctly and separately -- a
problem that wls-cluster eliminates completely. Your TCP configuration does
not appear to be sufficient. 


JIRA wrote:
> How to configure cache synchronization in the case of multiple jvm in same
> machine
> ----------------------------------------------------------------------------------
>                  Key: OPENJPA-943
>                  URL:
>              Project: OpenJPA
>           Issue Type: Question
>           Components: datacache
>          Environment: linux, weblogic 10.0
>             Reporter: krishnadasan  T S
> Hi,
>       I am using two managed servers in a cluster in same machine.For
> Cache synchronization across multiple JVM  I tried to use the following
> settings in persistance.xml.
>   <property name="kodo.RemoteCommitProvider"
> value="tcp(Addresses=">
> But when i deploy this application into cluster in one of the manged
> server i am getting a socket connection error.I think it is because of the
> two manged server in cluster is in same mechine.Both server trying to
> listen on the same default port. I could able to make it work when i used
> two managers in to different machine.But from the documentation i can not
> figure out how i can configure TCP option for remote commit provider in
> the case of same machine with multiple jvm. I also tried with 
>     <property name="kodo.RemoteCommitProvider" value="wls-cluster"/>
>  this also work fine when they are in two different machine but not
> working when they are in same machine.
>  I could not figure out the remote commit provider for multiple jvm and
> same machine.
> can anyone please help me.....
> thanks and regards
> Krishnadasan T S
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.

View this message in context:
Sent from the OpenJPA Developers mailing list archive at

View raw message