Package org.jboss.messaging.core.tx

Examples of org.jboss.messaging.core.tx.Transaction.commit()


      msgs[99] = CoreMessageFactory.createCoreMessage(99, true, null);
      refs[99] = ms.reference(msgs[99]);
      queue.handle(null, refs[99], tx);
      refs[99].releaseMemoryReference();
      tx.prepare();
      tx.commit();
     
      //verify no unloaded refs in storage
     
      refIds = getPagedReferenceIds(queue.getChannelID());
      assertTrue(refIds.isEmpty());
View Full Code Here


         refs[i] = ms.reference(msgs[i]);
         queue.handle(null, refs[i], null)
         refs[i].releaseMemoryReference();
      }
      tx.prepare();
      tx.commit();
     
      //verify no unloaded refs in storage
     
      refIds = getPagedReferenceIds(queue.getChannelID());
      assertTrue(refIds.isEmpty());
View Full Code Here

      msgs[109] = CoreMessageFactory.createCoreMessage(109, true, null);
      refs[109] = ms.reference(msgs[109]);
      queue.handle(null, refs[109], null);
      refs[109].releaseMemoryReference();
      tx.prepare();
      tx.commit();
     
      //verify 10 unloaded refs in storage
     
      refIds = getPagedReferenceIds(queue.getChannelID());
      assertEquals(10, refIds.size());
View Full Code Here

      msgs[110] = CoreMessageFactory.createCoreMessage(110, true, null);
      refs[110] = ms.reference(msgs[110]);
      queue.handle(null, refs[110], null);
      refs[110].releaseMemoryReference();
      tx.prepare();
      tx.commit();
     
      //verify 10 unloaded refs in storage
     
      refIds = getPagedReferenceIds(queue.getChannelID());
      assertEquals(10, refIds.size());
View Full Code Here

         refs[i] = ms.reference(msgs[i]);
         queue.handle(null, refs[i], null);  
         refs[i].releaseMemoryReference();
      }    
      tx.prepare();
      tx.commit();
     
      //verify 20 unloaded refs in storage
     
      refIds = getPagedReferenceIds(queue.getChannelID());
      assertEquals(20, refIds.size());
View Full Code Here

         refs[i] = ms.reference(msgs[i]);
         queue.handle(null, refs[i], null);        
         refs[i].releaseMemoryReference();
     
      tx.prepare();
      tx.commit();
     
      //verify 30 unloaded refs in storage
     
      refIds = getPagedReferenceIds(queue.getChannelID());
      assertEquals(30, refIds.size());
View Full Code Here

         refs[i] = ms.reference(msgs[i]);
         queue.handle(null, refs[i], null);     
         refs[i].releaseMemoryReference();
     
      tx.prepare();
      tx.commit();
     
      //verify 40 unloaded refs in storage
     
      refIds = getPagedReferenceIds(queue.getChannelID());
      assertEquals(40, refIds.size());
View Full Code Here

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

         refs[i] = ms.reference(msgs[i]);
         queue.handle(null, refs[i], null);
         refs[i].releaseMemoryReference();
      }
      tx.prepare();
      tx.commit();
     
      refIds = getPagedReferenceIds(queue.getChannelID());
      assertEquals(0, refIds.size());
     
      //Verify 40 refs in storage
View Full Code Here

         refs[i] = ms.reference(msgs[i]);
         queue.handle(null, refs[i], null);
         refs[i].releaseMemoryReference();
      }
      tx.prepare();
      tx.commit();
     
      refIds = getPagedReferenceIds(queue.getChannelID());
      assertEquals(0, refIds.size());
     
      //Verify 60 refs in storage
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.