[
http://jira.jboss.com/jira/browse/JBAS-3754?page=all ]
Weston Price resolved JBAS-3754.
--------------------------------
Resolution: Done
Added sorter to 4.0.5SP1.
ExceptionSorter which marks all exceptions as fatal
---------------------------------------------------
Key: JBAS-3754
URL:
http://jira.jboss.com/jira/browse/JBAS-3754
Project: JBoss Application Server
Issue Type: Patch
Security Level: Public(Everyone can see)
Components: JCA service
Reporter: Brian Egge
Assigned To: Weston Price
Priority: Trivial
Fix For: JBossAS-4.2.0.CR1, JBossAS-4.0.5.SP1
With Sybase we've had a few occasions where the exception sorter does not properly
detect a failed connection. We've found for our production servers the safest thing
is to recycle the connection on any error. This class would also be useful if your JDBC
provider doesn't have an existing exception sorter.
----
package org.jboss.resource.adapter.jdbc;
import java.sql.SQLException;
/**
* Mark all exceptions as fatal.
*
* @author <a href="mailto:brianegge@users.sourceforge.net">Brian
Egge</a>
*/
public class GenericExceptionSorter implements ExceptionSorter {
public boolean isExceptionFatal(SQLException e)
{
return true;
}
}
--
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