jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <asm...@yahoo.com>
Subject Re: UDP Discovery mode with JCS 1.2.7.3
Date Tue, 16 May 2006 21:10:23 GMT
Sorry it looks like the docs are out of date.  There
is no longer a general lateral cache factory.  There
is a TCP lateral cache factory.

The example on this page is good:
http://jakarta.apache.org/jcs/LateralTCPAuxCache.html

But the example on this page is bad:
http://jakarta.apache.org/jcs/LateralUDPDiscovery.html


Your config should look much like this:

# Lateral TCP Distribution with UDP Discovery
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.TcpListenerPort=1118
jcs.auxiliary.LTCP.attributes.UdpDiscoveryAddr=228.5.6.1
jcs.auxiliary.LTCP.attributes.UdpDiscoveryPort=6781
jcs.auxiliary.LTCP.attributes.UdpDiscoveryEnabled=true
jcs.auxiliary.LTCP.attributes.Receive=true
jcs.auxiliary.LTCP.attributes.AllowGet=false
jcs.auxiliary.LTCP.attributes.IssueRemoveOnPut=false
jcs.auxiliary.LTCP.attributes.FilterRemoveByHashCode=true






--- Michael Toback <Michael.Toback@chordiant.com>
wrote:

> Hi,
> 
>  
> 
> I am trying to create a JCS cache which will sync up
> with multiple
> caches defined in appserver instances, in this case
> a WebSphere 6
> cluster.
> 
>  
> 
> The documentation shows an example configuration to
> be:
> 
>  
> 
>
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
> 
>
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCa
> cheAttributes
> 
>
jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
> 
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> 
> jcs.auxiliary.LTCP.attributes.PutOnlyMode=true
> 
>
jcs.auxiliary.LTCP.attributes.UdpDiscoveryAddr=228.5.6.8
> 
> jcs.auxiliary.LTCP.attributes.UdpDiscoveryPort=6780
> 
>
jcs.auxiliary.LTCP.attributes.UdpDiscoveryEnabled=true
> 
>  
> 
> But the class LateralCacheFactory no longer exists
> in the jar. Using
> LateralTCPCacheFactory produces strange results as
> well (claiming that
> the UdpDiscoveryPort is not a valid multicast
> address).
> 
>  
> 
> Has anyone got this working or can anyone provide an
> updated example of
> how to use this?
> 
>  
> 
> Thanks,
> 
>  
> 
> Michael Toback
> 
> Principal Engineer
> 
> Chordiant Software
> 
> Cupertino, California
> 
>  
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Mime
View raw message