Package javax.resource

Examples of javax.resource.ResourceException


    HealthStatusService.updateCurrentHealthStatus(this,
                                                  HealthStatus.WARNING,
                                                  message);
   
    throw new ResourceException(message);
}
View Full Code Here


        exn = e;
      }
    }

    if (exn != null)
      throw new ResourceException(exn);
    else
      throw new ResourceException(L.l("Can't create a database connection because no drivers have been defined."));
  }
View Full Code Here

  /**
   * Sends the fatal event.
   */
  public void fatalEvent()
  {
    fatalEvent(new ResourceException("fatal event"));
  }
View Full Code Here

    if (_pooledConnection != null) {
    }
    else if (e instanceof ResourceException)
      _connException = (ResourceException) e;
    else
      _connException = new ResourceException(e);
  }
View Full Code Here

      }
      _autoCommit = true;

      conn.clearWarnings();
    } catch (SQLException e) {
      throw new ResourceException(e);
    }
  }
View Full Code Here

      } finally {
        stmt.close();
      }
    } catch (SQLException e) {
      e.printStackTrace();
      throw new ResourceException(e);
    }
  }
View Full Code Here

      if (poolConn != null) {
        poolConn.close();
        driverConn = null;
      }
    } catch (SQLException e) {
      throw new ResourceException(e);
    }

    try {
      if (driverConn != null)
        driverConn.close();
View Full Code Here

      try {
        _oldAutoCommit = _autoCommit;

        setAutoCommit(false);
      } catch (SQLException e) {
        throw new ResourceException(e) ;
      }
    }
View Full Code Here

      throws ResourceException
    {
      Connection conn = _driverConnection;

      if (conn == null)
        throw new ResourceException(L.l("connection is closed"));

      try {
        conn.commit();
      } catch (SQLException e) {
        throw new ResourceException(e) ;
      }

      try {
        setAutoCommit(_oldAutoCommit);
      } catch (SQLException e) {
        throw new ResourceException(e) ;
      }
    }
View Full Code Here

      throws ResourceException
    {
      Connection conn = _driverConnection;

      if (conn == null)
        throw new ResourceException(L.l("connection is closed"));

      try {
        conn.rollback();
      } catch (SQLException e) {
        throw new ResourceException(e) ;
      }

      try {
        setAutoCommit(_oldAutoCommit);
      } catch (SQLException e) {
        throw new ResourceException(e) ;
      }
    }
View Full Code Here

TOP

Related Classes of javax.resource.ResourceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.