TransactionException is thrown when an exception occurs while trying to create, start commit or rollback an exception
TransactionException
454647484950515253
con.setAutoCommit(false); } } catch (SQLException e) { throw new TransactionException(JdbcMessages.transactionSetAutoCommitFailed(), e); } super.bindResource(key, resource); }
636465666768697071727374757677787980
{ logger.warn(CoreMessages.commitTxButNoResource(this)); return; } TransactionException transactionException = null; try { ((Connection) resource).commit(); } catch (SQLException e) { transactionException = new TransactionException(CoreMessages.transactionCommitFailed(), e); } finally { closeConnection(transactionException); }
8889909192939495969798
} catch (SQLException e) { if (transactionException == null) { transactionException = new TransactionException(CoreMessages.createStaticMessage("Cannot close connection."), e); } else { logger.info("Cannot close connection."); }
109110111112113114115116117118119
{ logger.warn(CoreMessages.rollbackTxButNoResource(this)); return; } TransactionException transactionException = null; try { ((Connection) resource).rollback(); } catch (SQLException e)
4647484950515253
{ ((QueueSession)resource).begin(); } catch (ResourceManagerException e) { throw new TransactionException(CoreMessages.cannotStartTransaction("VMTransaction"), e); } }
6566676869707172
((QueueSession)resource).commit(); } } catch (ResourceManagerException e) { throw new TransactionException(CoreMessages.transactionCommitFailed(), e); } }
8081828384858687
((QueueSession)resource).rollback(); } } catch (ResourceManagerException e) { throw new TransactionException(CoreMessages.transactionRollbackFailed(), e); } }
295296297298299300301302303304305
{ connection.setAutoCommit(false); } catch (SQLException e) { throw new TransactionException(e); } if (isEnlisted()) { return false;
341342343344345346347348
{ return xaConnection.getXAResource(); } catch (SQLException e) { throw new TransactionException(e); } }
335336337338339340341342343344345