You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Phineas Fung <ph...@ckh.com.hk> on 2006/06/07 10:57:10 UTC
Add listener to LateralTCPCache
Hi all,
I'm writing a client-server application. Server continuously writes data to
a LTCP cache, while client (on another machine) continuously consume it.
My questions are:
- Can JCS notify my client class that new data are available in cache?
- Is there a LTCP cache listener that my client class can implement?
- Who this listener interface should register to to receive data change
notification event?
Would be very much grateful if you can point me to some sample source code.
Thanks alot.
Best Regards,
Phineas Fung
Here's part of my cache.ccf
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCac
heFactory
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TC
PLateralCacheAttributes
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
jcs.auxiliary.LTCP.attributes.AllowGet=false
jcs.auxiliary.LTCP.attributes.UdpDiscoveryEnabled=false
jcs.region.DistributedData=LTCP
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org