Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8244319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:48:46+00:00 2026-06-07T21:48:46+00:00

I am using ehcache with hibernate in my application. here is configuration of ehcache.xml

  • 0

I am using ehcache with hibernate in my application.
here is configuration of ehcache.xml

<ehcache>
    <diskStore path="java.io.tmpdir"/>        

    <defaultCache
            maxElementsInMemory="10"
            eternal="false"
            timeToIdleSeconds="120"
            timeToLiveSeconds="120"
            overflowToDisk="true"
            diskSpoolBufferSizeMB="300"
            maxElementsOnDisk="10000000"
            diskPersistent="false"
            diskExpiryThreadIntervalSeconds="120"
            memoryStoreEvictionPolicy="LRU"
            />
</ehcache>

my diskStore path is java.io.tmpdir, which i want to change to my application path as ${WebApp}/DiskStore

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T21:48:48+00:00Added an answer on June 7, 2026 at 9:48 pm

    Storage Location are specified by hard coading paths.

    Legal values for the path attibute are legal file system paths.

    E.g., for Unix: /home/application/cache

    The following system properties are also legal, in which case they are translated:

    user.home - User's home directory
    user.dir - User's current working directory
    java.io.tmpdir - Default temp file path
    ehcache.disk.store.dir - A system property 
    

    Subdirectories can be specified below the system property, for example:

    java.io.tmpdir/one

    becomes, on a Unix system:

    /tmp/one

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I configured Second Level Cache using Ehcache in hibernate.cfg.xml ,ehcache.xml.And setting the cache-usage property
I'm getting no improvement in speed when using Ehcache with Hibernate Here are the
Is there a difference between using Ehcache as Hibernate's second-level cache provider and distributing
Im primarily using Hibernate to reduce the memory consumption of my application because I
I am creating a web application using zkoss 5.0.4, Spring 3.0.3, Hibernate 3, and
I'm using Hibernate with Ehcache (don't think it matters, tho).. When a user logs
when using ehcache rather than defining statement like <cache name=testonly.package.model.TestPOJOcategory maxElementsInMemory=200 eternal=true overflowToDisk=false timeToIdleSeconds=300
I'm using ehcache with hibernate and I'd like to use the blocking or SelfPopulating
I successfully setup hibernate 3.6.2 to use second level cache, using the ehcache 2.5.2
When using Hibernate and Ehcache as a second-level cache (2LC) implementation, is (or can)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.