Package javax.jms

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


     * @throws javax.jms.IllegalStateException if the method is not called by a
     *                 transacted session.
     */
    public void commit() throws JMSException {
        if (isInXATransaction()) {
            throw new TransactionInProgressException("Cannot commit() if an XA transaction is already in progress ");
        }

        try {
            beforeEnd();
        } catch (JMSException e) {
View Full Code Here

     * @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

     * @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

     * @throws javax.jms.IllegalStateException if the method is not called by a
     *                 transacted session.
     */
    public void commit() throws JMSException {
        if (isInXATransaction()) {
            throw new TransactionInProgressException("Cannot commit() if an XA transaction is already in progress ");
        }

        try {
            beforeEnd();
        } catch (JMSException e) {
View Full Code Here

        return getSession().getAcknowledgeMode();
    }

    public void commit() throws JMSException {
        if (isParticipatingInActiveGlobalTransaction())
            throw new TransactionInProgressException("cannot commit a resource enlisted in a global transaction");

        getSession().commit();
    }
View Full Code Here

        getSession().commit();
    }

    public void rollback() throws JMSException {
        if (isParticipatingInActiveGlobalTransaction())
            throw new TransactionInProgressException("cannot rollback a resource enlisted in a global transaction");

        getSession().rollback();
    }
View Full Code Here

        getSession().rollback();
    }

    public void recover() throws JMSException {
        if (isParticipatingInActiveGlobalTransaction())
            throw new TransactionInProgressException("cannot recover a resource enlisted in a global transaction");

        getSession().recover();
    }
View Full Code Here

      {
         throw new IllegalStateException("Cannot commit a non-transacted session");
      }
      if (xa)
      {
         throw new TransactionInProgressException("Cannot call commit on an XA session");
      }
      try
      {
         session.commit();
      }
View Full Code Here

      {
         throw new IllegalStateException("Cannot rollback a non-transacted session");
      }
      if (xa)
      {
         throw new TransactionInProgressException("Cannot call rollback on an XA session");
      }

      try
      {
         session.rollback();
View Full Code Here

TOP

Related Classes of javax.jms.TransactionInProgressException

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.