Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

portlet ehcache

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , I need a suggestion/solution from the experts here.
There are 5 portlets in my application and all of them make web service calls (different services) to get the data and displayon the portlets.
I need to implement Caching using the ehcache such that the request originating from the user is served from the cache if the data is available in the cache or else make a web service call to serve the request and also update the cache.

The question is how do i implement this. Do I need to create a separate ehcache.xml per protlet and implement the caching or shall i create a common jar project and configure all the caching properties in one ehcache.xml and include the jar file in all the 5 portlets (in each portlets war file, lib folder)

Please help, also is there a better solution to achieve this.

Thanks
Micheal Marky
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic