my dog learned polymorphism*
The moose likes Tomcat and the fly likes Caching in tomcat. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Caching in tomcat." Watch "Caching in tomcat." New topic
Author

Caching in tomcat.

Amit Sharmas
Greenhorn

Joined: Sep 14, 2012
Posts: 1
Hi, I am using tomcat cluster and need to know how do I make sure to update some variable in all the nodes in cluster.
For example if I am saving a value in DB, I want to refresh cache in all the servers in cluster.




Thanks,
Amit
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

Welcome to the JavaRanch, Amit!

Tomcat does not cache either webpages or database data. However it will work will with mechanisms that do cache.

For database caching, one normally either programs cache support directly into the application or uses an ORM framework that supports a caching plug-in. There are a number of open-source and commercial cache products that can do the actual caching.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Caching in tomcat.
 
Similar Threads
Cluster-wide hot deployment of web applications: Farming in Tomcat
Best ways to setup the Tomcat Cluster
Cluster-wide hot deployment of web applications: Farming in Tomcat
can tomcat cluster only leaves one server up, if that server is down, then start the second server?
Tomcat cluster with IIS cluster