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

Dimitris Andreadis (JIRA) jira-events at jboss.com
Tue Oct 10 09:48:41 EDT 2006


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

Dimitris Andreadis updated JBAS-3754:
-------------------------------------

      Component/s: JCA service
    Fix Version/s: JBossAS-4.0.6.CR1

> 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