break;
}
String text = ((TextMessage)msg).getText();
int currentMsgIdx = Integer.parseInt(text);
LOG.debug("Received: " + text + " messageCount: " + messagesCount);
msg.acknowledge();
if ((messagesCount + diff) != currentMsgIdx) {
LOG.debug("Message(s) skipped!! Should be message no.: " + messagesCount + " but got: " + currentMsgIdx);
diff = currentMsgIdx - messagesCount;
}
++messagesCount;