[jboss-user] [JBoss Cache: Core Edition] - Re: Any way to ignore cache loader exceptions?

drcallaway do-not-reply at jboss.com
Mon Jun 15 12:37:44 EDT 2009


Yes. I have set async = true but that doesn't prevent errors in the asynchronous cache loader from throwing exceptions. If the database goes down, so does the local cache. However, I was able to fix my problem by subclassing JDBCCacheLoader and catching the exceptions thrown by its public methods. This allows the local cache to remain functional even if the database becomes unavailable.

And thanks for the asynchronous replication suggestion. That may be worth a try as well.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237714#4237714

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237714



More information about the jboss-user mailing list