This is a thread to discuss the tracking of XAResource failures
(for resource adapters that don't do it themselves).
Unlike what I put on the original feature request
http://jira.jboss.com/jira/browse/JBAS-5002
it would be better implemented as a generic plugin to the TxConnectionManager
class
http://jira.jboss.com/jira/browse/JBAS-5003
i.e. in the pseudo code on JBAS-5002 where it invokes checkFailure(XAException)
it would really invoke on the connection listener associated with the XAResource
(not currently implemented in the XAResourceWrapper).
This would use a singleton checker defined on the TxConnectionManager
to check for errors
public interface XAResourceExceptionSorter { boolean isFatal(XAExecption e); ] TxConnectionManager { public setXAResourceExceptionSorter(XAResourceExceptionSorter e) { ... } }
<xa-resource-execption-sorter>...</xa-resource-exception-sorter>