Package org.jboss.messaging.core.local

Examples of org.jboss.messaging.core.local.PagingFilteredQueue.handle()


      //Send one more ref - should clear the down cache
     
      tx = createXATx();
      msgs[109] = CoreMessageFactory.createCoreMessage(109, false, null);
      refs[109] = ms.reference(msgs[109]);
      queue.handle(null, refs[109], tx);
      refs[109].releaseMemoryReference();
      tx.prepare();
      tx.commit();
     
      //verify 10 refs in storage
View Full Code Here


      //Send one more ref
     
      tx = createXATx();
      msgs[110] = CoreMessageFactory.createCoreMessage(110, false, null);
      refs[110] = ms.reference(msgs[110]);
      queue.handle(null, refs[110], tx);
      refs[110].releaseMemoryReference();
      tx.prepare();
      tx.commit();
     
      //verify 10 refs in storage
View Full Code Here

      tx = createXATx();
      for (int i = 111; i < 120; i++)
      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, false, null);
         refs[i] = ms.reference(msgs[i]);
         queue.handle(null, refs[i], tx);        
         refs[i].releaseMemoryReference();
      }     
      tx.prepare();
      tx.commit();
     
View Full Code Here

      tx = this.createXATx();
      for (int i = 200; i < 300; i++)
      {
         Message m = CoreMessageFactory.createCoreMessage(i, true, null);
         MessageReference ref = ms.reference(m);
         queue.handle(null, ref, tx);       
         ref.releaseMemoryReference();
     
      tx.prepare();
      tx.rollback();
     
View Full Code Here

      tx = createXATx();
      for (int i = 120; i < 130; i++)
      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, false, null);
         refs[i] = ms.reference(msgs[i]);
         queue.handle(null, refs[i], tx)
         refs[i].releaseMemoryReference();
     
      tx.prepare();
      tx.commit();
     
View Full Code Here

      tx = createXATx();
      for (int i = 130; i < 140; i++)
      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, false, null);
         refs[i] = ms.reference(msgs[i]);
         queue.handle(null, refs[i], tx);
         refs[i].releaseMemoryReference();
     
      tx.prepare();
      tx.commit();
     
View Full Code Here

     
      //Send one more ref
      tx = createXATx();
      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
View Full Code Here

      tx = createXATx();
      for (int i = 111; i < 120; i++)
      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, true, null);
         refs[i] = ms.reference(msgs[i]);
         queue.handle(null, refs[i], null);  
         refs[i].releaseMemoryReference();
      }    
      tx.prepare();
      tx.commit();
     
View Full Code Here

      tx = this.createXATx();
      for (int i = 200; i < 300; i++)
      {
         Message m = CoreMessageFactory.createCoreMessage(i, true, null);
         MessageReference ref = ms.reference(m);
         queue.handle(null, ref, tx);      
         ref.releaseMemoryReference();
     
      tx.prepare();
      tx.rollback();
     
View Full Code Here

      tx = createXATx();
      for (int i = 120; i < 130; i++)
      {
         msgs[i] = CoreMessageFactory.createCoreMessage(i, true, null);
         refs[i] = ms.reference(msgs[i]);
         queue.handle(null, refs[i], null);        
         refs[i].releaseMemoryReference();
     
      tx.prepare();
      tx.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.