good documentation about "avoid catching throwable", in context of weblogic server
Posted
by Marcel
on Stack Overflow
See other posts from Stack Overflow
or by Marcel
Published on 2010-05-10T15:01:42Z
Indexed on
2010/05/10
15:04 UTC
Read the original article
Hit count: 439
hi all,
i am currently refactoring an existing codebase (EJBs...) to rip out all blocks where a Throwable is catched inside of the EJB.
try {
... do some business logic
} catch(Throwable t){
... log and swallow ... :-(
}
i want/need to convince the people around me with proper documentation that "catching throwable" is a no-go for an EJB (we have lots of discussions around this :-(( ). weblogic will handle all the "Error" conditions and maybe invalidate EJBs and put fresh(working) EJBs into the pool. catching Throwable would undermine all these security nets provided by weblogic. and catching throwable is bad practice anyway (but people here are reluctant and use the "throwable" hammer everywhere).
is anyone able to point me to some online docs where this behaviour is explained (for weblogic or jboss or...). i searched via google and had a look at the weblogic docs but wasn't able to find anything, just generic java doc.
any help highly appreciated
cheers marcel
© Stack Overflow or respective owner