Your questions are not clear, you won't get any answers if you are not clear 
and have done some reading, coding and testing on your own before asking 
questions.


JCS is a caching toolkit, it does not do load balancing.
You can use JCS as a distributed cache in a load balanced cluster.
If you only have one server, then you don't need the TCP lateral cache. 

I did not not understand your second question, what do you want to initialize 
the cache with?
If you have two servlet, are they running in the same webapp ? If they are, 
then you can share the JCS caches in memory.
Are the servlets in different webapps? If that is the case, then you may use 
TCP lateral cache if your application requires a shared distributed cache.

-Jorge




-----Original Message-----
From: Ahmad Kamil Abdul Hamid [mailto:ka...@akg.t.u-tokyo.ac.jp] 
Sent: Thursday, October 08, 2009 9:32 PM
To: jcs-users@jakarta.apache.org
Subject: Load balancing with JCS

Hi,

I am new to cache programming in Java. JCS is actually my first java-based 
cache programming experience.

Currently, as part of my research, I need to design a cache to be implemented 
within Tomcat (proxy server). I chose JCS for the cache software.

I have two questions:

a) For a single proxy server, is it possible to implement load balancing with 
JCS? (Maybe by using TCP lateral cache?)

b) What will be the best way to initialize the cache and accessing the cache 
with two separate servlets?

Thank you.

Best regards.

Ahmad Kamil Abdul Hamid

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

Reply via email to