132133134135136137138139140141142
ClientMessage msg = session.createMessage(true); prod.send(msg); } queue.blockOnExecutorFuture(); //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.blockOnExecutorFuture(); assertTrue(queue.isDirectDeliver()); //Send some more for (int i = 0; i < numMessages; i++)