}
}
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();
}
}
}