-
Sub-task
-
Resolution: Obsolete
-
Major
-
JBossAS-4.2.2.GA
-
None
Related to the parent task.
The best way to implement this would be to introduce a generic execption handler
(like the ExceptionSorter in our jdbc adapter).
This handler could check for additional errors beyond XAER_RMERR and XAER_RMFAIL
for which the connection should be closed.
e.g. a simple one might be the XAException contains a nested IOException?
Another one could be checking of a particular string in the XAExecption.getMessage().
public boolean isFatal(XAExeption e)
{
if (xaException.getMessage().contains("ACME-0473") // fatal error
return true;
return false;
}