Package javax.jms

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


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

    public boolean getTransacted() throws JMSException {
        return true;
    }

    public void rollback() throws JMSException {
        throw new TransactionInProgressException("Cannot rollback() inside an XASession");
    }
View Full Code Here

    public void rollback() throws JMSException {
        throw new TransactionInProgressException("Cannot rollback() inside an XASession");
    }

    public void commit() throws JMSException {
        throw new TransactionInProgressException("Cannot commit() inside an XASession");
    }
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

  /**
   * Used to know when a local transaction has started.
   */
  public void begin() throws JMSException {
    if( inXATransaction )
      throw new TransactionInProgressException("Cannot start local transction.  XA transaction is allready in progress.");
    if( inLocalTransaction )
      throw new TransactionInProgressException("Cannot start local transction.  Local transaction is allready in progress.");
   
    inLocalTransaction = true;
    startLocalTransaction();   
  }
View Full Code Here

      return inLocalTransaction;
  }
 
  public void rollback() throws JMSException {
    if( inXATransaction )
          throw new TransactionInProgressException("Cannot rollback() if an XA transaction is allready in progress ");
    if( autoCommit )
            throw new javax.jms.IllegalStateException("Not a transacted session");
    if( !autoCommit && !inLocalTransaction)
            return;
    if( !inLocalTransaction )
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.