Hi,

I have come so far to try out a remote cache server scenario. I have 
written a small sample application that uses a memory cache correctly.

The scenario I want to reach is:

- have a remote cache server, RCS
- have two cache clients, CC1 and CC2

I understant that on CC1 and CC2, all would look the same as with the 
local memory cache mode, only that some lines are added to the cache.ccf 
file, e.g. something like this:

# Remote RMI Cache set up to failover
jcs.auxiliary.RFailover=
     org.apache.jcs.auxiliary.remote.RemoteCacheFactory
jcs.auxiliary.RFailover.attributes=
     org.apache.jcs.auxiliary.remote.RemoteCacheAttributes
jcs.auxiliary.RFailover.attributes.FailoverServers=
     rcs:1102
jcs.auxiliary.RC.attributes.RemoveUponRemotePut=true
jcs.auxiliary.RFailover.attributes.GetOnly=false


where rcs is the remote cache server machine name.

The code I use to get an instance of the object cache is:

JCS.getInstance( "objCache");

My question is: what code do I run on the remote cache server side? If I 
try to same function call, and have a remote.cache.ccf (as suggested by 
the page http://jakarta.apache.org/turbine/jcs/RemoteAuxCache.html) like:

# Registry used to register and provide the
# IRemoteCacheService service.
registry.host=localhost
registry.port=1102
# call back port to local caches.
remote.cache.service.port=1102
# tomcat config
remote.tomcat.on=false
# cluster setting
remote.cluster.LocalClusterConsistency=true


basically nothing happens, the program returns immediately. What do I 
need to do to keep this remote caching server alive? Do I need to start 
a separate thread and run it in there, waiting for some exit signal?


Akos


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to