You can now plug in retry handlers that are able to retry transactions based
on an exception.  This is useful for Oracle deadlock SQLExceptions and also
MySQL cluster failure exceptions that can be retried.

It is configured on a per container configuration basis. You expand on the declaration
of the TxInterceptorCMT XML definition


<interceptor>org.jboss.ejb.plugins.TxInterceptorCMT
     <retry-handlers>
        <handler>org.mysql.SomeExceptionHandler</handler>
     </retry-handler>
</interceptor>

The handler class must implement org.jboss.ejb.plugins.TxRetryExceptionHandler
which has one method


boolean retry(Exception ex)


-- ================ Bill Burke Chief Architect JBoss Group LLC. ================




------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to