Package javax.transaction

Examples of javax.transaction.NotSupportedException


   public void begin()
      throws NotSupportedException, SystemException
   {
      if(getStatus() != Status.STATUS_NO_TRANSACTION)
         throw new NotSupportedException("Attempt to start a nested transaction (the transaction started previously hasn't been ended yet).");

      ThreadInfo info = getThreadInfo();
      trace = log.isTraceEnabled(); // Only check for trace enabled once per transaction
     
      if (trace)
View Full Code Here


        // Unsupported methods follow
        //////////////////////////////

        public void begin()
            throws NotSupportedException, SystemException {
            throw new NotSupportedException();
        }
View Full Code Here

  protected void applyTimeout(JiniTransactionObject txObject, int timeout)
      throws NotSupportedException {
    // TODO: maybe use a LeaseRenewalManager
    if (timeout != TransactionDefinition.TIMEOUT_DEFAULT) {
      throw new NotSupportedException(
          "JiniTransactionManager does not support custom timeouts");
    }
  }
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

      {
        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

    */
   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();

      if (userTransactionRegistry != null)
         userTransactionRegistry.userTransactionStarted();
View Full Code Here

   public void begin() throws NotSupportedException, SystemException
   {
      Transaction currentTx;
      if ((currentTx = getTransaction()) != null)
      {
         throw new NotSupportedException(Thread.currentThread() +
               " is already associated with a transaction (" + currentTx + ")");
      }
      AsyncRollbackTransaction tx = new AsyncRollbackTransaction(this, timeout);
      setTransaction(tx);
      txMap.put(tx.generateTransactionId(), tx);
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.