[jboss-jira] [JBoss JIRA] Created: (JBAS-3754) ExceptionSorter which marks all exceptions as fatal
Brian Egge (JIRA)
jira-events at jboss.com
Tue Oct 10 09:42:42 EDT 2006
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)
Reporter: Brian Egge
Priority: Trivial
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 at 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
More information about the jboss-jira
mailing list