Details
-
Patch
-
Resolution: Done
-
Trivial
-
None
-
None
Description
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; }}