--- Phineas Fung <[EMAIL PROTECTED]> wrote: > 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. >
I'm not clear exactly what you are trying to do. JCS has several plugins that allow you to distribute cache data. They are intended largely to keep various caches synchronized. You can easily use JCS to broadcast out cached data. You can use the Lateral TCP auxiliary or the Remote server. > My questions are: > - Can JCS notify my client class that new data are > available in cache? You are thinking about this the wrong way. You want a pull model. Sure you can do that with JCS, but JCS doesn't have remote notification. Instead, it sends the actual data. Alternatively you can have the cache send out invalidations when an item is updated. This would meet your needs. > - 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? > There is no way to register for a remote event. I'm not sure why ou would need this. Perhaps you should explain your need, since it sounds like there may be a better solution to our problem. > Would be very much grateful if you can point me to > some sample source code. There is a lot of documentation on the web site. Cheers, Aaron --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
