Package org.jboss.messaging.core.plugin.contract

Examples of org.jboss.messaging.core.plugin.contract.ClusteredPostOffice.route()


         this.checkEmpty(receiver4);
         checkContainsAndAcknowledge(msg, receiver5, queue5);
        
         msg = CoreMessageFactory.createCoreMessage(1, persistentMessage, null);     
         ref = ms.reference(msg);        
         routed = office6.route(ref, new SimpleCondition("queue1"), null);        
         assertTrue(routed);
        
         //The actual queue that receives the mesage is determined by the routing policy
         //The default uses round robin for the nodes (this is tested more thoroughly in
         //its own test)
View Full Code Here


         checkContainsAndAcknowledge(msg, receiver2, sub2);
         this.checkEmpty(receiver3);
        
         msg = CoreMessageFactory.createCoreMessage(3, persistentMessage, null);     
         ref = ms.reference(msg);        
         routed = office3.route(ref, new SimpleCondition("topic"), null);          
         assertTrue(routed);        
         Thread.sleep(500);
         this.checkEmpty(receiver1);        
         this.checkEmpty(receiver2);
         checkContainsAndAcknowledge(msg, receiver3, sub2);          
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.