0

I am using cache and ehcache plugin. I have configured ehcahe.xml as follow

<ehcache name="backEndData">
<diskStore path="user.dir/src/main/webapp/cache"/>

  <defaultCache
      maxElementsInMemory="0"
      maxElementsOnDisk="10000"
      eternal="false"
      overflowToDisk="true">
  </defaultCache>
</ehcache>

It is working in development environment perfectly but how to make this working after deploying war file.

Sachin Aryal
  • 781
  • 14
  • 36
  • Why would you want to use WEB-INF directory? Why not a location on disk that is well known and can be configured? – Louis Jacomet Jul 12 '16 at 20:36
  • I am deploying my application in aws server. so is it possible ? – Sachin Aryal Jul 13 '16 at 09:12
  • I do not know the answer to that question. – Louis Jacomet Jul 14 '16 at 09:30
  • I am also having problem while storing cached data in disk on development mode too, cached data is not stored in .data file but .index file have some encoded value. .index file is only created after i shutdown the application. can you provide me some solution ? – Sachin Aryal Jul 14 '16 at 09:37

0 Answers0