protected void doCommand(AMQQueue fromQueue, long start, long end, AMQQueue toQueue)
{
ServerTransaction txn = new LocalTransaction(fromQueue.getVirtualHost().getTransactionLog());
fromQueue.copyMessagesToAnotherQueue(start, end, toQueue.getName().toString(), txn);
txn.commit();
}
}