public RMMessageContext getNextPriorityMessageContextToSend() {
RMMessageContext msg = null;
try {
SandeshaQueue sq = SandeshaQueue.getInstance(endPoint);
msg = sq.nextPriorityMessageToSend();
} catch (QueueException e) {
SandeshaQueueDAO.log.error(e);
}
return msg;
}