File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EhCache and the fly likes EHCache dynamic data caching Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Caching » EhCache
Bookmark "EHCache dynamic data caching" Watch "EHCache dynamic data caching" New topic

EHCache dynamic data caching

Rithanya Laxmi
Ranch Hand

Joined: Jan 24, 2011
Posts: 181

Whether we can use EHCache for caching dynamic data? I am using Ehcache to cache static webservice response which is
working fine. But when the webservice response is dynamic in nature, (ie)the request parameter which will be passed
will be different like CustId 100, 200, 300 hence the webservice response which we will get will be different specific
to the request param that is passed. Whether we can use EHcache or any caching mechanisms to cache those dynamic
webservice response? Please clarify. Any examples are really appreciated.

Amit G Piplani
Ranch Hand

Joined: Jul 21, 2004
Posts: 83
Basically, you should be making your key also dynamic. If your request is dynamic with custId, then make it that as key and response as Webservice response.

I agree. Here's the link:
subject: EHCache dynamic data caching
It's not a secret anymore!