Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3754

ExceptionSorter which marks all exceptions as fatal

    XMLWordPrintable

Details

    • Patch
    • Resolution: Done
    • Trivial
    • JBossAS-4.2.0.CR1
    • None
    • JCA service
    • 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; }

        }

      Attachments

        Activity

          People

            weston.price Weston M. Price (Inactive)
            brianegge Brian Egge (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: