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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...