Package org.jboss.messaging.core.impl

Examples of org.jboss.messaging.core.impl.MessagingQueue.handle()


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


      tx = tr.createTransaction();
      for (int i = 100; i < 109; i++)
      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, true, null);
         refs[i] = msgs[i].createReference();
         queue.handle(null, refs[i], tx);        
      }
      tx.commit();
     
      //verify no unloaded refs in storage
     
View Full Code Here

      //Send one more ref - should clear the down cache
     
      tx = tr.createTransaction();
      msgs[109] = CoreMessageFactory.createCoreMessage(109, true, null);
      refs[109] = ms.reference(msgs[109]);
      queue.handle(null, refs[109], tx);
      tx.commit();
     
      //verify 10 unloaded refs in storage
     
      refIds = getPagedReferenceIds(queue.getChannelID());
View Full Code Here

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

      tx = tr.createTransaction();
      for (int i = 111; i < 120; i++)
      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, true, null);
         refs[i] = msgs[i].createReference();
         queue.handle(null, refs[i], tx);        
      }     
      tx.commit();
     
      //verify 20 unloaded refs in storage
     
View Full Code Here

      tx = tr.createTransaction();
      for (int i = 120; i < 130; i++)
      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, true, null);
         refs[i] = msgs[i].createReference();
         queue.handle(null, refs[i], tx);        
     
      tx.commit();
     
      //verify 30 unloaded refs in storage
     
View Full Code Here

      tx = tr.createTransaction();
      for (int i = 200; i < 300; i++)
      {
         Message m = CoreMessageFactory.createCoreMessage(i, true, null);
         MessageReference ref = ms.reference(m);
         queue.handle(null, ref, tx);        
     
      tx.rollback();
     
     
      //Send 10 more refs
View Full Code Here

      tx = tr.createTransaction();
      for (int i = 130; i < 140; i++)
      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, true, null);
         refs[i] = msgs[i].createReference();
         queue.handle(null, refs[i], tx);
     
      tx.commit();
     
      //verify 40 unloaded refs in storage
     
View Full Code Here

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

      tx = tr.createTransaction();
      for (int i = 141; i < 161; i++)
      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, true, null);
         refs[i] = msgs[i].createReference();
         queue.handle(null, refs[i], tx);
      }
      tx.commit();
     
      refIds = getPagedReferenceIds(queue.getChannelID());
      assertEquals(0, refIds.size());
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.