Package javax.transaction

Examples of javax.transaction.SystemException


        if(trackedConnectionAssociator != null) {
            try {
                trackedConnectionAssociator.newTransaction();
            } catch (ResourceException e) {
                throw (SystemException)new SystemException().initCause(e);
            }
        }
    }
View Full Code Here


            TransactionContext oldContext = beanContext.getOldContext();
            transactionContextManager.setContext(oldContext);
            try {
                oldContext.resume();
            } catch (InvalidTransactionException e) {
                throw (SystemException)new SystemException("Unable to resume perexisting transaction context").initCause(e);
            }
        }
    }
View Full Code Here

            TransactionContext oldContext = beanContext.getOldContext();
            transactionContextManager.setContext(oldContext);
            try {
                oldContext.resume();
            } catch (InvalidTransactionException e) {
                throw (SystemException)new SystemException("Unable to resume perexisting transaction context").initCause(e);
            }
        }
    }
View Full Code Here

            // Wrap the error to give a reasonable stacktrace since the resource
            // could have been enlisted by a different thread
            if (enlistError == failedToEnlist)
            {
               throw new SystemException(bundle.systemExceptionWhenFailedToEnlistEqualsCurrentTx(
                     failedToEnlist, this.currentTx));
            }
            else
            {
               SystemException e = new SystemException(error);
               e.initCause(enlistError);
               throw e;
            }
         }
         if (!enlisted)
         {
View Full Code Here

            // Wrap the error to give a reasonable stacktrace since the resource
            // could have been enlisted by a different thread
            if (enlistError == failedToEnlist)
            {
               throw new SystemException(bundle.systemExceptionWhenFailedToEnlistEqualsCurrentTx(
                     failedToEnlist, this.currentTx));
            }
            else
            {
               SystemException e = new SystemException(error);
               e.initCause(enlistError);
               throw e;
            }
         }
         if (!enlisted)
         {
View Full Code Here

            context.close();
         }
      }
      catch (NamingException e)
      {
         throw new SystemException(e.getMessage());
      }
   }
View Full Code Here

      getUserTransaction().setTransactionTimeout(seconds);
   }

   public Transaction suspend() throws SystemException
   {
      throw new SystemException("Suspend not supported.");
   }
View Full Code Here

      throw new SystemException("Suspend not supported.");
   }

   public void resume(Transaction tx) throws InvalidTransactionException, IllegalStateException, SystemException
   {
      throw new SystemException("Resume not supported.");
   }
View Full Code Here

          connection.commit();
          connection.close();
        }
        catch ( SQLException sqle ) {
          status = Status.STATUS_UNKNOWN;
          throw new SystemException();
        }
      }

      status = Status.STATUS_COMMITTED;
View Full Code Here

        connection.rollback();
        connection.close();
      }
      catch ( SQLException sqle ) {
        status = Status.STATUS_UNKNOWN;
        throw new SystemException();
      }
    }

    if (synchronizations != null) {
           for ( int i = 0; i < synchronizations.size(); i++ ) {
View Full Code Here

TOP

Related Classes of javax.transaction.SystemException

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.