This content has been marked as final.
Show 6 replies
-
1. Re: Rollback Tx on EJBException (NoSuchEJBException)?
alrubinger Aug 14, 2008 2:39 AM (in response to alrubinger)Note: that patch leaves rollback in place.
-
2. Re: Rollback Tx on EJBException (NoSuchEJBException)?
jaikiran Aug 15, 2008 2:25 AM (in response to alrubinger)This is not an answer to your question in the subject line :)
"ALRubinger" wrote:
+ else if(t instanceof RuntimeException)
+ {
t = new EJBTransactionRolledbackException(t.getMessage(), (Exception) t);
}
But, shouldn't there be an additional check here, before wrapping it in EJBTransactionRolledbackException, to see if this exception is marked as an application exception by the bean provider, either through @ApplicationException annotation or its xml equivalent? -
3. Re: Rollback Tx on EJBException (NoSuchEJBException)?
alrubinger Aug 15, 2008 6:48 AM (in response to alrubinger)An excellent point, but there's more to the policy than my patch. ;)
Look to the EJB3 Transactions project, org.jboss.ejb3.tx.Ejb3TxPolicy, for the answer.
S,
ALR -
4. Re: Rollback Tx on EJBException (NoSuchEJBException)?
jaikiran Aug 15, 2008 8:59 AM (in response to alrubinger)"ALRubinger" wrote:
Look to the EJB3 Transactions project, org.jboss.ejb3.tx.Ejb3TxPolicy, for the answer.
Sure, when i am back :) -
5. Re: Rollback Tx on EJBException (NoSuchEJBException)?
jaikiran Aug 18, 2008 9:57 AM (in response to alrubinger)"ALRubinger" wrote:
Look to the EJB3 Transactions project, org.jboss.ejb3.tx.Ejb3TxPolicy, for the answer.
Got it. -
6. Re: Rollback Tx on EJBException (NoSuchEJBException)?
alrubinger Aug 21, 2008 1:35 AM (in response to alrubinger)Rolling back the Tx in case of NoSuchEJBException seems to make sense, and I haven't found any conflicts yet, so that's what I'm doing.
S,
ALR