Package org.jboss.messaging.core.message

Examples of org.jboss.messaging.core.message.MessageReference


         router.add(receivers[i]);
      }
     
      Message msg = CoreMessageFactory.createCoreMessage(123, true, null);
     
      MessageReference ref = ms.reference(msg);
           
      Delivery del = router.handle(null, ref, null);
      assertNotNull(del);
      checkReceiverGotRef(receivers, 0);
      resetReceivers(receivers);
View Full Code Here


     
      receivers[9].closed = true;
     
      Message msg = CoreMessageFactory.createCoreMessage(123, true, null);
     
      MessageReference ref = ms.reference(msg);
     
      Delivery del = router.handle(null, ref, null);
      assertNotNull(del);
      checkReceiverGotRef(receivers, 0);
      resetReceivers(receivers);
View Full Code Here

      }
     
     
      Message msg = CoreMessageFactory.createCoreMessage(123, true, null);
     
      MessageReference ref = ms.reference(msg);
     
      Delivery del = router.handle(null, ref, null);
      assertNull(del);

      del = router.handle(null, ref, null);
View Full Code Here

     
      receivers[9].selectorMatches = false;
     
      Message msg = CoreMessageFactory.createCoreMessage(123, true, null);
     
      MessageReference ref = ms.reference(msg);
     
      Delivery del = router.handle(null, ref, null);
      assertNotNull(del);
      checkReceiverGotRef(receivers, 0);
      resetReceivers(receivers);
View Full Code Here

      }
     
     
      Message msg = CoreMessageFactory.createCoreMessage(123, true, null);
     
      MessageReference ref = ms.reference(msg);
     
      Delivery del = router.handle(null, ref, null);
      assertNotNull(del);
      assertFalse(del.isSelectorAccepted());
     
View Full Code Here

   {
      Router router = new RoundRobinPointToPointRouter();

      Message msg = CoreMessageFactory.createCoreMessage(123, true, null);
     
      MessageReference ref = ms.reference(msg);
     
      Delivery del = router.handle(null, ref, null);
      assertNull(del);
     
      del = router.handle(null, ref, null);
View Full Code Here

         {
            // sends the message to the router on a separate thread
           
            Message msg = CoreMessageFactory.createCoreMessage(123, true, null);
           
            MessageReference ref = ms.reference(msg);
           
            router.handle(null, ref, null);
         }
      }, "Message sending thread");
View Full Code Here

      for(int i = 0; i < a.length; i++)
      {
         for(Iterator j = l.iterator(); j.hasNext(); )
         {
            Delivery d = (Delivery)j.next();
            MessageReference ref = d.getReference();

            if (a[i].getReference().getMessage().getMessageID() == ref.getMessage().getMessageID())
            {
               j.remove();
               break;
            }
         }
View Full Code Here

      Message m2 = new CoreMessage(2, false, 0, 0, (byte)0, null, null);
      Message m3 = new CoreMessage(3, false, 0, 0, (byte)0, null, null);
      Message m4 = new CoreMessage(4, false, 0, 0, (byte)0, null, null);
      Message m5 = new CoreMessage(5, false, 0, 0, (byte)0, null, null);
     
      MessageReference ref1 = ms.reference(m1);
      MessageReference ref2 = ms.reference(m2);
      MessageReference ref3 = ms.reference(m3);
      MessageReference ref4 = ms.reference(m4);
      MessageReference ref5 = ms.reference(m5);
     
      Delivery del = queue.handle(null, ref1, null);
      assertFalse(del.isSelectorAccepted());
     
      del = queue.handle(null, ref2, null);
View Full Code Here

      }

      // the channel has no receivers
      assertFalse(queue.iterator().hasNext());

      MessageReference ref = createReference(0, false, "payload");
      SimpleDeliveryObserver observer = new SimpleDeliveryObserver();

      // non-transacted send, non-reliable message, one message
      Delivery delivery = queue.handle(observer, ref, null);
View Full Code Here

TOP

Related Classes of org.jboss.messaging.core.message.MessageReference

Copyright © 2018 www.massapicom. 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.