We put the cache on the application server for EJB use. We also put another cache on the Web Server for the presentation use. In some cases the presentation and the EJBs are using the same information from the cache but stored in two separate locations within the application. The reason for this is for performance and storing the information closest to the point of a request. Because we are using two caches for the application, we are keeping the cache updated on both servers.
Updating two separate caches within an application is a chore, but it is doable[sic]. The update tasks associated with the EJB container is easy and straightforward. I am curious about updating the cache on the web server from the EJB container and discovering a better way from other experieince designers.
Thanks for taking to time to read my post!
Russell