Examples of TransactionInProgressException


Examples of javax.jms.TransactionInProgressException

     * be called for an <code>XASession</code> object.
     *
     * @throws TransactionInProgressException if invoked
     */
    public void rollback() throws JMSException {
        throw new TransactionInProgressException(
                "Cannot call rollback on XAQueueSession");
    }
View Full Code Here

Examples of javax.jms.TransactionInProgressException

     * be called for an <code>XASession</code> object.
     *
     * @throws TransactionInProgressException if invoked
     */
    public void commit() throws JMSException {
        throw new TransactionInProgressException(
                "Cannot call commit on XATopicession");
    }
View Full Code Here

Examples of javax.jms.TransactionInProgressException

     * be called for an <code>XASession</code> object.
     *
     * @throws TransactionInProgressException if invoked
     */
    public void rollback() throws JMSException {
        throw new TransactionInProgressException(
                "Cannot call rollback on XATopicSession");
    }
View Full Code Here

Examples of javax.jms.TransactionInProgressException

     * be called for an <code>XASession</code> object.
     *
     * @throws TransactionInProgressException if invoked
     */
    public void commit() throws JMSException {
        throw new TransactionInProgressException(
                "Cannot call commit on XASession");
    }
View Full Code Here

Examples of javax.jms.TransactionInProgressException

     * be called for an <code>XASession</code> object.
     *
     * @throws TransactionInProgressException if invoked
     */
    public void rollback() throws JMSException {
        throw new TransactionInProgressException(
                "Cannot call rollback on XASession");
    }
View Full Code Here

Examples of javax.jms.TransactionInProgressException

      else if (method.getName().equals("hashCode")) {
        // Use hashCode of Connection proxy.
        return new Integer(System.identityHashCode(proxy));
      }
      else if (method.getName().equals("commit")) {
        throw new TransactionInProgressException("Commit call not allowed within a managed transaction");
      }
      else if (method.getName().equals("rollback")) {
        throw new TransactionInProgressException("Rollback call not allowed within a managed transaction");
      }
      else if (method.getName().equals("close")) {
        // Handle close method: not to be closed within a transaction.
        return null;
      }
View Full Code Here

Examples of javax.jms.TransactionInProgressException

      else if (method.getName().equals("hashCode")) {
        // Use hashCode of Connection proxy.
        return new Integer(hashCode());
      }
      else if (method.getName().equals("commit")) {
        throw new TransactionInProgressException("Commit call not allowed within a managed transaction");
      }
      else if (method.getName().equals("rollback")) {
        throw new TransactionInProgressException("Rollback call not allowed within a managed transaction");
      }
      else if (method.getName().equals("close")) {
        // Handle close method: not to be closed within a transaction.
        return null;
      }
View Full Code Here

Examples of javax.jms.TransactionInProgressException

     * @throws javax.jms.JMSException on internal error
     */
    public void begin() throws JMSException {

        if (isInXATransaction()) {
            throw new TransactionInProgressException("Cannot start local transaction.  XA transaction is already in progress.");
        }
       
        if (transactionId == null) {
            synchronizations = null;
            beforeEndIndex = 0;
View Full Code Here

Examples of javax.jms.TransactionInProgressException

     * @throws javax.jms.IllegalStateException if the method is not called by a
     *                 transacted session.
     */
    public void rollback() throws JMSException {
        if (isInXATransaction()) {
            throw new TransactionInProgressException("Cannot rollback() if an XA transaction is already in progress ");
        }
       
        try {
            beforeEnd();
        } catch (TransactionRolledBackException canOcurrOnFailover) {
View Full Code Here

Examples of org.apache.ojb.broker.TransactionInProgressException

     */
    public void localBegin()
    {
        if (this.isInLocalTransaction)
        {
            throw new TransactionInProgressException("Connection is already in transaction");
        }
        Connection connection = null;
        try
        {
            connection = this.getConnection();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.