Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Caching in tomcat.

 
Amit Sharmas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18020
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic