[jboss-jira] [JBoss JIRA] Resolved: (JBAS-3754) ExceptionSorter which marks all exceptions as fatal

Weston Price (JIRA) jira-events at jboss.com
Fri Oct 20 01:23:41 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBAS-3754?page=all ]

Weston Price resolved JBAS-3754.
--------------------------------

    Resolution: Done

Added GenericExceptionSorter to flag all SQLExceptions as fatal regardless of code. 

> 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
>            Priority: Trivial
>             Fix For: JBossAS-4.0.6.CR1
>
>
> 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