Examples of beforeCompletion()


Examples of com.atomikos.icatch.Synchronization.beforeCompletion()

        Synchronization sync = null;
        Enumeration enumm = synchronizations_.elements ();
        while ( enumm.hasMoreElements () ) {
          sync = (Synchronization) enumm.nextElement ();
          try {
            sync.beforeCompletion ();
          } catch ( RuntimeException error ) {
            //see case 24246: rollback only
            setRollbackOnly();
            Configuration.logWarning ( "Unexpected error in beforeCompletion: " , error );
          }
View Full Code Here

Examples of com.sun.sgs.service.TransactionListener.beforeCompletion()

       * possibility that a beforeCompletion call adds another listener.
       */
      for (int i = 0; i < listeners.size(); i++) {
    TransactionListener listener = listeners.get(i);
    try {
        listener.beforeCompletion();
    } catch (RuntimeException e) {
        if (logger.isLoggable(Level.FINEST)) {
      logger.logThrow(
          Level.FINEST, e,
          "beforeCompletion {0} listener:{1} failed",
View Full Code Here

Examples of javax.ejb.SessionSynchronization.beforeCompletion()

         throw new IllegalArgumentException("target not an instance of SessionSynchronization " + target);
      SessionSynchronization synch = (SessionSynchronization) invocation.getTargetObject();
      // fake tx semantics
      synch.afterBegin();
      Object result = invocation.invokeNext();
      synch.beforeCompletion();
      synch.afterCompletion(true);
      return result;
   }
}
View Full Code Here

Examples of javax.ejb.SessionSynchronization.beforeCompletion()

         try
         {
            // FIXME: This is a dirty hack to notify AS EJBTimerService about what's going on
            AllowedOperationsAssociation.pushInMethodFlag(AllowedOperationsAssociation.IN_BEFORE_COMPLETION);
           
            bean.beforeCompletion();
         }
         catch (RemoteException e)
         {
            throw new RuntimeException(e);
         }
View Full Code Here

Examples of javax.ejb.SessionSynchronization.beforeCompletion()

         try
         {
            // FIXME: This is a dirty hack to notify AS EJBTimerService about what's going on
            AllowedOperationsAssociation.pushInMethodFlag(AllowedOperationsAssociation.IN_BEFORE_COMPLETION);
           
            bean.beforeCompletion();
         }
         catch (RemoteException e)
         {
            throw new RuntimeException(e);
         }
View Full Code Here

Examples of javax.ejb.SessionSynchronization.beforeCompletion()

         try
         {
            // FIXME: This is a dirty hack to notify AS EJBTimerService about what's going on
            AllowedOperationsAssociation.pushInMethodFlag(AllowedOperationsAssociation.IN_BEFORE_COMPLETION);
           
            bean.beforeCompletion();
         }
         catch (RemoteException e)
         {
            throw new RuntimeException(e);
         }
View Full Code Here

Examples of javax.transaction.Synchronization.beforeCompletion()

            // Synchronization.beforeCompletion
            Iterator syncIterator = synchronization.iterator();
            while (syncIterator.hasNext())
            {
                Synchronization sync = (Synchronization) syncIterator.next();
                sync.beforeCompletion();
            }
           
            List failures = null;
            boolean failed = false;
   
View Full Code Here

Examples of javax.transaction.Synchronization.beforeCompletion()

      Synchronization synchronization = flushSynch.get( session );
      if ( synchronization != null ) {
        //first cleanup
        flushSynch.remove( session );
        log.debug( "flush event causing index update out of transaction" );
        synchronization.beforeCompletion();
        synchronization.afterCompletion( Status.STATUS_COMMITTED );
      }
    }
  }
View Full Code Here

Examples of javax.transaction.Synchronization.beforeCompletion()

                    return;
                }
                synch = (Synchronization) syncList.get(i++);
            }
            try {
                synch.beforeCompletion();
            } catch (Exception e) {
                log.warn("Unexpected exception from beforeCompletion; transaction will roll back", e);
                synchronized (this) {
                    status = Status.STATUS_MARKED_ROLLBACK;
                }
View Full Code Here

Examples of javax.transaction.Synchronization.beforeCompletion()

                } else {
                    synch = (Synchronization) syncs.get(i++);
                }
            }
            try {
                synch.beforeCompletion();
            } catch (Exception e) {
                log.warn("Unexpected exception from beforeCompletion; transaction will roll back", e);
                synchronized (this) {
                    status = Status.STATUS_MARKED_ROLLBACK;
                }
View Full Code Here
TOP
Copyright © 2015 www.massapi.com. 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.