Package org.jboss.jms.server.bridge

Examples of org.jboss.jms.server.bridge.Bridge$FailureHandler


      }                 
   }
  
   private void testMaxBatchTimeSameServer(int qosMode, boolean persistent) throws Exception
   {
      Bridge bridge = null;
           
      try
      {
         final long MAX_BATCH_TIME = 3000;
        
         final int MAX_BATCH_SIZE = 100000; // something big so it won't reach it
        
         bridge = new Bridge(cff0, cff0, sourceQueueFactory, localTargetQueueFactory,
                  null, null, null, null,
                  null, 3000, 10, qosMode,
                  MAX_BATCH_SIZE, MAX_BATCH_TIME,
                  null, null, false);
        
         bridge.start();
        
         final int NUM_MESSAGES = 10;
        
         //Send some message

         //Send some message

         this.sendMessages(cf0, sourceQueue, 0, NUM_MESSAGES, persistent);                
        
         //Verify none are received
        
         this.checkEmpty(localTargetQueue, 0);;
        
         //Messages should now be receivable
        
         this.checkAllMessageReceivedInOrder(cf0, localTargetQueue, 0, NUM_MESSAGES);
      }
      finally
      {             
         if (bridge != null)
         {
            bridge.stop();
         }       
      }                 
   }
View Full Code Here

TOP

Related Classes of org.jboss.jms.server.bridge.Bridge$FailureHandler

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.