JBAS-3336 (resource manager error during enlist should close the connection).
There are other xa resource failures that need to be catered for.
e.g. a failure to delist probably means a problem with the connection.
Also, this could be dealt with at the rar level? e.g. the jdbc XAManagedConnection
public void end(Xid xid, int flags) throws XAException
+ catch (XAException e)