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 7408701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:57:38+00:00 2026-05-29T05:57:38+00:00

I use hibernate + ehcache to read a workflow engine database. hibernate does not

  • 0

I use hibernate + ehcache to read a workflow engine database.
hibernate does not write anything on that database.
If i set TimetoLive setting in the cache, the cache won’t reflect any database changes unless TimetoLive arrives.

database changes is done by the workflow engine API, so there is no way to use hibernate to write the database.

Shouldn’t ehcache knows the cache is expired and do the updates for me ?

Any clean way to solve the cache wrong problem ?

  • 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-05-29T05:57:39+00:00Added an answer on May 29, 2026 at 5:57 am

    the cache won’t reflect any database changes unless TimetoLive arrives.

    That’s the intended functionality! These second level caches do nothing but store data in hash maps and know nothing about the changes unless you tell it to or the time to evict the objects out of cache and reread them.

    To solve this is to not use caches on volatile objects.

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

Sidebar

Related Questions

I have some EJBs that use Hibernate to persist data to the database. I
Does Ehcache 2.1 now support the transactional cache concurrency strategy in Hibernate 3.3.2GA? That
We are trying to use Hibernate with a database that uses a lot of
I want to use hibernate against an existing database. I need to mostly read
ehcache-core-2.1.0.jar seems to have the following dependency, does it imply I cannot use this
I use Hibernate/Spring and a MySQL Database for my data management. Currently I display
I use Hibernate and I have a datetime in my MySQL database. Now I
I'm using ehcache with hibernate and I'd like to use the blocking or SelfPopulating
My DAL is implemented with Hibernate and I want to use EHCache as its
We use Hibernate as our ORM layer on top of a MySQL database. We

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.