[jira] Commented: (JCS-37) JCS Lateral Cache Synchronization on Clustered deployments.

"serwah sabetghadam (JIRA)" <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.jcs.devel
Message-ID <391015079.1207724244339.JavaMail.jira@brutus>
    [ https://issues.apache.org/jira/browse/JCS-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587063#action_12587063 ] 

serwah sabetghadam commented on JCS-37:
---------------------------------------

Hi, 
I have done this configuration for two servers. 
I have given port numbers 1111 and 1112 to them in this way:
#Auxiliary 
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCacheAttributes
jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
jcs.auxiliary.LTCP.attributes.TcpServers=192.170.2.1:1112
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
jcs.auxiliary.LTCP.attributes.PutOnlyMode=false


and 

#Auxiliary 
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCacheAttributes
jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
jcs.auxiliary.LTCP.attributes.TcpServers=192.170.2.2:1111
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1112
jcs.auxiliary.LTCP.attributes.PutOnlyMode=false

the port number doen't relate to your program listening port. I mean if you 
use tomcat for example and listening on 8080 it is not necessary to set
your ports on it.

Hope it works for you.
Serwah

> JCS Lateral Cache Synchronization on Clustered deployments.
> -----------------------------------------------------------
>
>                 Key: JCS-37
>                 URL: https://issues.apache.org/jira/browse/JCS-37
>             Project: JCS
>          Issue Type: Wish
>          Components: TCP Lateral Cache
>         Environment: Weblogic 8
>            Reporter: gayathri g
>            Assignee: Aaron Smuts
>            Priority: Minor
>
> I am trying to develop a caching application, deployed on a cluster (two separate physical machines ) and my main requirement is to maintain consistency between both the caches. i.e, if i update a particular cache, it shud propagate to the other one too. I found that TCP lateral cache suits best for my requirement.
> Can someone help me with the configuration of the auxillary cache? 
> jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
> jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
> jcs.auxiliary.LTCP.attributes.TcpServers=gsng19d10005:8001,gsng19d10006:8001
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=8001
> jcs.auxiliary.LTCP.attributes.AllowGet=true
> jcs.auxiliary.LTCP.attributes.UdpDiscoveryEnabled=false
> what s the significance of tcpListenerPort? The application is deployed on the port 8001 of both the machines. So can the TCPListnerPort be 8001?
> or shud i give a different port number? If so, shud I ensure that the specific port is open on each of the machines?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.