[jboss-user] [JBoss jBPM] - Re: db error : exception handler cannot be loaded and infini

gogoasa do-not-reply at jboss.com
Tue Aug 14 13:39:43 EDT 2007


Well, the error handler can do its job inside a try-catch(Exception) and be sure that nothing escapes it. That's what I personally do, in fact.

But if the error handler itself is not available, then it is more like a "framework" problem. Moreover, the exception handler is typically loaded when there IS a problem. One of possible problems may be a database problem, irrespective of how much effort has been put into the correct configuration of the application.

Indeed, loading all classes in advance may be overkill for processes with lots of custom actions and code deployed in the process archive (although I understand deploying lots of code into the database is actually discouraged and I understand why) -- But, leaving ordinary classes aside, how many exception handlers can there be ?

Eager loading or not -- the actual big problem that occurs on general db failure is the infinite loop. Indeed, all that an already-loaded exception handler can do on general db failure is log stuff to log4j but anyway things get logged. So the only real problem remains the loop.

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

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



More information about the jboss-user mailing list