Meaningless Drivel is fun!*
The moose likes EhCache and the fly likes Explicitly configure the diskStore element in ehcache.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Caching » EhCache
Bookmark "Explicitly configure the diskStore element in ehcache.xml" Watch "Explicitly configure the diskStore element in ehcache.xml" New topic
Author

Explicitly configure the diskStore element in ehcache.xml

Ramakrishna Udupa
Ranch Hand

Joined: Aug 09, 2013
Posts: 244
Hi All,

I'm using Eh-cache for core_java Project which deals on Threads. I want to store the elements to diskStore, if overflow happens. For that I've to mention external file system(to store elements). How to configure in ehcache.xml to a file-system. Can anybody please send the ehcache.xml which contains all configurable attributes. By default it takes the path like C:\Users\Admin\AppData\Local\Temp. I want to store those overflowed cache elements in D:/users/etc.,

I'm storing information in cache like this,




When thread created with a name like Tfirst, Tsecond etc., I put all information for that particular thread in cache with key as Thread name and value as list(Which contains all information about that thread). How to retrieve/get those(one by one/randomly) cached objects from the cache?



Thanks:
Ramakrishna K.C
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Explicitly configure the diskStore element in ehcache.xml
 
Similar Threads
Searching a text document, printing needed strings.
require another set of eyes to look at my code
What is the proper configuration for OpenJPA using ehcache as a distributed second level cache?
Generics - need help
classloader conflict using mybatis/ehcache/terracotta within a custom container