Announcement Announcement Module
No announcement yet.
Performing pre close actions Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Performing pre close actions


    I want one of my beans to persist certain data in the cache if application with the bean closes. My bean implements Lifecycle interface. Unfortunately when the stop method is called the cache is already close. I get an exception: onException: The cache is closed.; nested exception is com.gemstone.gemfire.cache.CacheClosedException: The cache is closed.

    I tried to use "depends-on" property on my bean and point it to gemfire-cache bean/template bean/region bean. It didn't do anything it seems as I got the same exception about cache being close. Is it possible to write some data into the cache pre close? Can you advise, please?
    I'm using spring-gemfire 1.1.0

  • #2
    Please note, the Spring Forum for Spring Data GemFire will become read-only effective on June 20th, 2014. If the problem to this question has not been resolved, please re-post the question on StackOverflow, using the spring-data-gemfire tag. Thank you for your patience during this transition.
    Last edited by John Blum; Jun 17th, 2014, 04:03 PM.