aspose file tools*
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
Author

EHCache dynamic data caching

Rithanya Laxmi
Ranch Hand

Joined: Jan 24, 2011
Posts: 140
Hi,

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.


Thanks.
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.


SCJP,SCWCD,SCBCD,SCDJWS1.4, SCDJWS1.5
 
 
subject: EHCache dynamic data caching