TextMessage rm = (TextMessage)cons1.receive(5000);
log.info("message num sucked: " + msgs.size());
while (rm != null)
{
rm.acknowledge();
log.info("message sucked: " + rm + " text=" + rm.getText());
msgs.put(rm.getText(), rm);
rm = (TextMessage)cons1.receive(5000);
}