Examples of addWork()


Examples of org.apache.sandesha2.workers.WorkerLock.addWork()

   
        SenderWorker worker = new SenderWorker(context, createSeqEntry, rmsBean.getRMVersion());
        worker.setLock(lock);
        worker.setWorkId(workId);
        // Actually take the lock
        lock.addWork(workId, worker);
       
        // Commit the transaction, so that the sender worker starts with a clean slate.
        if(appMsgProcTran.isActive()) appMsgProcTran.commit();       
           
        if(worker != null) {
View Full Code Here

Examples of org.apache.sandesha2.workers.WorkerLock.addWork()

     
      worker = new SenderWorker(context, appMsgEntry, rmsBean.getRMVersion());
      worker.setLock(lock);
      worker.setWorkId(workId);
      // Actually take the lock
      lock.addWork(workId, worker);
    }
   
    // Commit the transaction, so that the sender worker starts with a clean slate.
    if(appMsgProcTran != null && appMsgProcTran.isActive()) appMsgProcTran.commit();
    
View Full Code Here

Examples of org.apache.sandesha2.workers.WorkerLock.addWork()

      String workId = matchingMessage.getMessageID();
      SenderWorker worker = new SenderWorker(pollMessage.getConfigurationContext(), matchingMessage, pollMessage.getRMSpecVersion());
      worker.setLock(lock);
      worker.setWorkId(workId);
      while (!lock.addWork(workId, worker)) {
        try {
          // wait on the lock.
          lock.awaitRemoval(workId);
        } catch (InterruptedException e) {
          e.printStackTrace();
View Full Code Here

Examples of org.apache.sandesha2.workers.WorkerLock.addWork()

      SenderWorker worker = new SenderWorker(configurationContext,
          senderBean, rmsBean.getRMVersion());
      worker.setLock(lock);
      worker.setWorkId(workId);
      // Actually take the lock
      lock.addWork(workId, worker);

      // Commit the transaction, so that the sender worker starts with a clean state
      if (transaction != null && transaction.isActive())
        transaction.commit();
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.