throw new OperationsException("\"From MessageId\" should be greater than 0 and less than \"To MessageId\"");
}
ServerTransaction txn = new LocalTransaction(_queue.getVirtualHost().getTransactionLog());
_queue.moveMessagesToAnotherQueue(fromMessageId, toMessageId, toQueueName, txn);
txn.commit();
}
/**
* @see ManagedQueue#deleteMessages
* @param fromMessageId