[jboss-jira] [JBoss JIRA] Created: (JBAS-5003) Introduce generic exception handler for XAResources
Adrian Brock (JIRA)
jira-events at lists.jboss.org
Mon Nov 26 08:23:18 EST 2007
Introduce generic exception handler for XAResources
---------------------------------------------------
Key: JBAS-5003
URL: http://jira.jboss.com/jira/browse/JBAS-5003
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: JCA service
Affects Versions: JBossAS-4.2.2.GA
Reporter: Adrian Brock
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;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list