[jboss-dev-forums] [Design of EJB 3.0] - EJBTHREE-1844: Retry on rollback
wolfc
do-not-reply at jboss.com
Fri Jun 5 05:23:22 EDT 2009
I've added a function to retry an operation whenever an EJBTransactionRolledbackException occurs. Usually this is because of a resource commit failure, which could be caused by a temporary problem (dead lock / outage).
To configure the retry currently the annotation org.jboss.ejb3.tx.api.TransactionRetry needs to be put either on the bean or on a method.
What I don't like is the fact that the annotation now resides within ejb3-transactions, so I've marked it experimental. Either it should go to ejb3-ext-api, but this would change our api (for the better) or into ejb3-tx-api. Alternatively I could create an ejb3-tx-retry component which would could slot into a runtime.
Also we need to be able to extend jboss-metadata to allow plugins, so that the retry function can be enabled via descriptors.
How do we want to proceed here?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235567#4235567
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235567
More information about the jboss-dev-forums
mailing list