2nd level cache problem after server restart

78 views
Skip to first unread message

bas moorkens

unread,
Nov 19, 2012, 10:04:02 AM11/19/12
to hibernate...@googlegroups.com
Hello all,

I have the following problem in my application. Whenever I restart my server (tomcat), then it crashes as it comes back online.
This problem only happens when my 2nd level cache is filled. So if my 2nd lvl cache is expired or empty I don't have a problem with this.
I get a lot of strange exceptions about this, I can provide stacktraces if needed but I doubt they will be of much use.

Am I missing some point here? Is it possible to reboot your application server and still use the previous instance's 2nd level cache?

Regards,
Bas Moorkens

Uwe Schäfer

unread,
Nov 22, 2012, 5:17:19 AM11/22/12
to hibernate...@googlegroups.com
On 11/19/2012 04:04 PM, bas moorkens wrote:

> Am I missing some point here? Is it possible to reboot your application
> server and still use the previous instance's 2nd level cache?

only, if your entities did not change, so they are still compatible with
their stored state in memcached.

otherwise, just do a flush_all.

uwe
Reply all
Reply to author
Forward
0 new messages