Package javax.transaction

Examples of javax.transaction.NotSupportedException


    {
      checkTransactionState();
    }
    catch (IllegalStateException e1)
    {
            NotSupportedException notSupportedException = new NotSupportedException();
            notSupportedException.initCause(e1);
            throw notSupportedException;
    }
    catch (Exception e2)
    {
            javax.transaction.SystemException systemException = new javax.transaction.SystemException(e2.toString());
View Full Code Here


    *          If the transaction service fails in an unexpected way.
    */
   public void begin() throws NotSupportedException, SystemException {
      Transaction currentTx;
      if ((currentTx = getTransaction()) != null)
         throw new NotSupportedException(Thread.currentThread() +
               " is already associated with a transaction (" + currentTx + ")");
      DummyTransaction tx = new DummyTransaction(this);
      setTransaction(tx);
   }
View Full Code Here

        begin(getTransactionTimeoutMilliseconds(0L));
    }

    public Transaction begin(long transactionTimeoutMilliseconds) throws NotSupportedException, SystemException {
        if (getStatus() != Status.STATUS_NO_TRANSACTION) {
            throw new NotSupportedException("Nested Transactions are not supported");
        }
        TransactionImpl tx = new TransactionImpl(xidFactory, transactionLog, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds));
//        timeoutTimer.schedule(tx, getTransactionTimeoutMilliseconds(transactionTimeoutMilliseconds));
        try {
            associate(tx);
View Full Code Here

    *          If the transaction service fails in an unexpected way.
    */
   public void begin() throws NotSupportedException, SystemException {
      Transaction currentTx;
      if ((currentTx = getTransaction()) != null)
         throw new NotSupportedException(Thread.currentThread() +
               " is already associated with a transaction (" + currentTx + ")");
      DummyTransaction tx = new DummyTransaction(this);
      setTransaction(tx);
   }
View Full Code Here

                              SystemException
   {
      Transaction tx = registry.getTransaction();
     
      if (tx != null)
         throw new NotSupportedException();

      registry.startTransaction();
   }
View Full Code Here

                              SystemException
   {
      Transaction tx = registry.getTransaction();
     
      if (tx != null)
         throw new NotSupportedException();

      registry.startTransaction();
   }
View Full Code Here

      {
        checkTransactionState();
      }
      catch (IllegalStateException e1)
      {
        throw new NotSupportedException();
      }
      catch (Exception e2)
      {
        throw new javax.transaction.SystemException(e2.toString());
      }
View Full Code Here

    {
      checkTransactionState();
    }
    catch (IllegalStateException e1)
    {
      throw new NotSupportedException();
    }
    catch (Exception e2)
    {
      throw new javax.transaction.SystemException(e2.toString());
    }
View Full Code Here

      {
        checkTransactionState();
      }
      catch (IllegalStateException e1)
      {
        throw new NotSupportedException();
      }
      catch (org.omg.CORBA.SystemException e2)
      {
        throw new javax.transaction.SystemException(e2.toString());
      }
    }

    try
    {
      TransactionImple.putTransaction(new TransactionImple());
    }
    catch (org.omg.CosTransactions.SubtransactionsUnavailable e3)
    {
      // shouldn't happen if we get here from the previous checks!

      throw new NotSupportedException();
    }
    catch (org.omg.CORBA.SystemException e4)
    {
      throw new javax.transaction.SystemException(e4.toString());
    }
View Full Code Here

        Transaction tx = threadLocal.get();
        if (tx != null)
        {
            if ((tx.getStatus() == Status.STATUS_MARKED_ROLLBACK))
            {
                throw new NotSupportedException("Nested Transaction not supported!");
            }
        }

        Integer timer = timerThead.get();
        threadLocal.set(new KunderaTransaction(timer != null ? timer : DEFAULT_TIME_OUT));
View Full Code Here

TOP

Related Classes of javax.transaction.NotSupportedException

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.