Package org.jboss.messaging.core.impl.tx

Examples of org.jboss.messaging.core.impl.tx.Transaction.prepare()


      {
         Message m = CoreMessageFactory.createCoreMessage(i, true, null);
         MessageReference ref = ms.reference(m);
         queue.handle(null, ref, tx);      
     
      tx.prepare();
      tx.rollback();
     
     
      //Send 10 more refs
      tx = createXATx();
View Full Code Here


      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, true, null);
         refs[i] = msgs[i].createReference();
         queue.handle(null, refs[i], null);        
     
      tx.prepare();
      tx.commit();
     
      //verify 30 unloaded refs in storage
     
      refIds = getPagedReferenceIds(queue.getChannelID());
View Full Code Here

      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, true, null);
         refs[i] = msgs[i].createReference();
         queue.handle(null, refs[i], null);     
     
      tx.prepare();
      tx.commit();
     
      //verify 40 unloaded refs in storage
     
      refIds = getPagedReferenceIds(queue.getChannelID());
View Full Code Here

      //Send one more ref
      tx = createXATx();
      msgs[140] = CoreMessageFactory.createCoreMessage(140, true, null);
      refs[140] = ms.reference(msgs[140]);
      queue.handle(null, refs[140], null);
      tx.prepare();
      tx.commit();
     
      //verify 40 unloaded refs in storage
     
      refIds = getPagedReferenceIds(queue.getChannelID());
View Full Code Here

      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, true, null);
         refs[i] = msgs[i].createReference();
         queue.handle(null, refs[i], null);
      }
      tx.prepare();
      tx.commit();
     
      refIds = getPagedReferenceIds(queue.getChannelID());
      assertEquals(0, refIds.size());
     
View Full Code Here

      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, true, null);
         refs[i] = msgs[i].createReference();
         queue.handle(null, refs[i], null);
      }
      tx.prepare();
      tx.commit();
     
      refIds = getPagedReferenceIds(queue.getChannelID());
      assertEquals(0, refIds.size());
     
View Full Code Here

      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, true, null);
         refs[i] = msgs[i].createReference();
         queue.handle(null, refs[i], null);
      }
      tx.prepare();
      tx.commit();
     
      //verify 20 unloaded ref in storage
     
      refIds = getPagedReferenceIds(queue.getChannelID());
View Full Code Here

/*     */       {
/* 459 */         if (trace) log.trace(this + " received TWO_PHASE_COMMIT prepare request");
/*     */
/* 461 */         Transaction tx = this.tr.createTransaction(request.getXid());
/* 462 */         processTransaction(request.getState(), tx, checkForDuplicates);
/* 463 */         tx.prepare();
/*     */       }
/* 465 */       else if (request.getRequestType() == 3)
/*     */       {
/* 467 */         if (trace) log.trace(this + " received TWO_PHASE_COMMIT commit request");
/*     */
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.