132133134135136137138139140141142
ClientMessage msg = session.createMessage(true); prod.send(msg); } queue.flushExecutor(); //Consumer is not started so should go queued assertFalse(queue.isDirectDeliver()); session.start();
155156157158159160161162163164165
//Add another message, should go direct ClientMessage msg = session.createMessage(true); prod.send(msg); queue.flushExecutor(); assertTrue(queue.isDirectDeliver()); //Send some more for (int i = 0; i < numMessages; i++)
527528529530531532533534535536537
bridge.stop(); managementService.unregisterBridge(name); } } bridge.flushExecutor(); } // for testing public void clear() {
529530531532533534535536537538539
550551552553554555556557558559560
} } if (bridge!= null) { bridge.flushExecutor(); } } // for testing public void clear()
186187188189190191192193194195196
Bridge bridge = server0.getClusterManager().getBridges().get(bridgeName); bridge.stop(); bridge.flushExecutor(); for (int i = 0; i < numMessages; i++) { ClientMessage message = session0.createMessage(false);
736737738739740741742743744745746
BridgeStartTest.log.info("stopping bridge manually"); bridge.stop(); bridge.flushExecutor(); for (int i = numMessages; i < numMessages * 2; i++) { ClientMessage message = session0.createMessage(false);
771772773774775776777778779780781
Assert.assertNull(consumer1.receiveImmediate()); bridge.stop(); bridge.flushExecutor(); for (int i = 0; i < numMessages; i++) { ClientMessage message = session0.createMessage(false);