[jboss-dev-forums] [Design of JBoss jBPM] - Re: how crucial are exception handlers ?
tom.baeyens@jboss.com
do-not-reply at jboss.com
Thu Feb 28 06:21:17 EST 2008
"camunda" wrote : In reality I don't like the use of exception handlers in the process too much.
|
| On the other hand is fault handling quite important in BPEL, so I think something comparable should be go into jPDL 4 too. So I think exception handlers are important for the language, because they are expected by the users...
|
| Even if I agree with you that it could be solved better by abstract base classes or the like.
|
| Cheers
| BErnd
i didn't really express the value that i see in exception handlers yet. there are now 2 reasons why i think they can be valuable:
1) configurability. if you do it in a base class, there is only one, hard-coded way of handling the exception. While if you use exception handlers, you can in the process decide whether you want to send an email to an admin or start another process in case of failure.
2) transactions. we can offer the infrastructure to execute the exception handler inside the failing transaction or as a synchronization creating a separate transaction right after the failing transaction rolled back.
though both these arguments are maybe not enough to add them...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132792#4132792
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132792
More information about the jboss-dev-forums
mailing list