Package org.mule.api.transaction

Examples of org.mule.api.transaction.TransactionException


                con.setAutoCommit(false);
            }
        }
        catch (SQLException e)
        {
            throw new TransactionException(JdbcMessages.transactionSetAutoCommitFailed(), e);
        }
        super.bindResource(key, resource);
    }
View Full Code Here


        {
            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);
        }
View Full Code Here

        }
        catch (SQLException e)
        {
            if (transactionException == null)
            {
                transactionException = new TransactionException(CoreMessages.createStaticMessage("Cannot close connection."), e);
            }
            else
            {
                logger.info("Cannot close connection.");
            }
View Full Code Here

        {
            logger.warn(CoreMessages.rollbackTxButNoResource(this));
            return;
        }

        TransactionException transactionException = null;
        try
        {
            ((Connection) resource).rollback();
        }
        catch (SQLException e)
View Full Code Here

        {
            ((QueueSession)resource).begin();
        }
        catch (ResourceManagerException e)
        {
            throw new TransactionException(CoreMessages.cannotStartTransaction("VMTransaction"), e);
        }
    }
View Full Code Here

                ((QueueSession)resource).commit();
            }
        }
        catch (ResourceManagerException e)
        {
            throw new TransactionException(CoreMessages.transactionCommitFailed(), e);
        }
    }
View Full Code Here

                ((QueueSession)resource).rollback();
            }
        }
        catch (ResourceManagerException e)
        {
            throw new TransactionException(CoreMessages.transactionRollbackFailed(), e);
        }
    }
View Full Code Here

        {
            connection.setAutoCommit(false);
        }
        catch (SQLException e)
        {
            throw new TransactionException(e);
        }

        if (isEnlisted())
        {
            return false;
View Full Code Here

        {
            return xaConnection.getXAResource();
        }
        catch (SQLException e)
        {
            throw new TransactionException(e);
        }
    }
View Full Code Here

        {
            connection.setAutoCommit(false);
        }
        catch (SQLException e)
        {
            throw new TransactionException(e);
        }

        if (isEnlisted())
        {
            return false;
View Full Code Here

TOP

Related Classes of org.mule.api.transaction.TransactionException

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.