Examples of resume()


Examples of com.arjuna.mw.wst.TransactionManager.resume()

      TxContext ctx = tm.suspend();
     
      System.out.println("Suspended: "+ctx);

      tm.resume(ctx);

      System.out.println("\nResumed\n");
    catch (Exception eouter) {
        try {
            ut.rollback();
View Full Code Here

Examples of com.arjuna.mw.wst11.TransactionManager.resume()

        final DemoDurableParticipant p3 = new DemoDurableParticipant();
        final DemoVolatileParticipant p4 = new DemoVolatileParticipant();

        ut.begin();
        final TxContext tx = tm.suspend();
        tm.resume(tx);
        tm.enlistForDurableTwoPhase(p1, p1.identifier());
        tm.enlistForVolatileTwoPhase(p2, p2.identifier());
        ust.begin();
        final TxContext stx = tm.suspend();
        tm.resume(stx);
View Full Code Here

Examples of com.atomikos.datasource.xa.XAResourceTransaction.resume()

                // same restx will be reused in different
                // JTA transactions!
                restx = (XAResourceTransaction) resource_
                        .getResourceTransaction ( ct );
                pc_.setResourceTransaction ( restx );
                restx.resume ();
                LOGGER
                        .logDebug ( "JDBC ConnectionProxy: using resource transaction: "
                                + restx.getXid () );

            }
View Full Code Here

Examples of com.atomikos.icatch.CompositeTransactionManager.resume()

        if ( ctm == null ) {
            Configuration.logWarning ( "ResumePreviousTransactionSubTxAwareParticipant: no transaction manager found?" );
        }
        else {
            try {
                ctm.resume ( previous );
            }
            catch ( Exception error ) {
                Configuration.logWarning ( "ResumePreviousTransactionSubTxAwareParticipant: could not resume previous transaction" , error );
            }
        }
View Full Code Here

Examples of com.caucho.transaction.TransactionManagerImpl.resume()

    } finally {
      try {
        if (parent != null) {
          TransactionManagerImpl tm = TransactionManagerImpl.getLocal();

          tm.resume(parent);
        }
      } catch (RuntimeException e) {
        throw e;
      } catch (Exception e) {
        throw new EJBException(e);
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.runtime.ProcessInstanceEntity.resume()

    if(!processInstanceImpl.isSuspended()){
      throw new FixFlowException("流程实例没有暂停,不能恢复");
    }
   
    //恢复流程实例
    processInstanceImpl.resume();
 
    try {
      // 持久化实例
      processInstanceManager.saveProcessInstance(processInstanceImpl);
    } catch (Exception e) {
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.runtime.TokenEntity.resume()

   
    //获取当前操作任务的令牌
    TokenEntity token = getTaskInstanceEntity().getToken();
    //恢复令牌
    token.resume();
   
    try {
      //保存流程实例
      saveProcessInstance(commandContext);
     
View Full Code Here

Examples of com.founder.fix.fixflow.core.task.TaskInstance.resume()


  public void resumeTask(String taskId) {
    TaskService taskService=getProcessEngine().getTaskService();
    TaskInstance taskInstance=taskService.createTaskQuery().taskId(taskId).singleResult();
    taskInstance.resume();
    taskService.saveTask(taskInstance);
  }

  public void suspendTask(String taskId) {
    TaskService taskService=getProcessEngine().getTaskService();
View Full Code Here

Examples of com.founder.fix.fixflow.core.task.TaskMgmtInstance.resume()

  }

  void resumeTaskInstances() {
    TaskMgmtInstance taskMgmtInstance = (getProcessInstance() != null ? getProcessInstance().getTaskMgmtInstance() : null);
    if (taskMgmtInstance != null) {
      taskMgmtInstance.resume(this);
    }
  }


  public void lock() {
View Full Code Here

Examples of com.google.enterprise.connector.util.diffing.CheckpointAndChangeQueue.resume()

    CheckpointAndChangeQueue q = new CheckpointAndChangeQueue(changeSource,
        persistDir, internalFactory, clientFactory);
    q.setMaximumQueueSize(2);
    q.start(null);
    String checkpoint = null;
    checkpoint = checkChangesAndReturnLastCheckpoint(q.resume(checkpoint), 0, 2);
    checkpoint = checkChangesAndReturnLastCheckpoint(q.resume(checkpoint), 2, 2);
    checkpoint = checkChangesAndReturnLastCheckpoint(q.resume(checkpoint), 4, 2);
    checkpoint = checkChangesAndReturnLastCheckpoint(q.resume(checkpoint), 0, 0);
    checkpoint = checkChangesAndReturnLastCheckpoint(q.resume(checkpoint), 0, 0);
    assertFalse(q.resume(checkpoint).iterator().hasNext());
View Full Code Here
TOP
Copyright © 2018 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.