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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 125
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EHCache dynamic data caching
 
Similar Threads
OutOfMemoryException
ehcache and lucene comparison
SOAP Request from Java to .NET
Apache CXF - return value without service method invocation
Why use MemCache for database results caching when hibernate and spring does it all