Message msg = Message.wrapMomMessage(this, (org.objectweb.joram.shared.messages.Message) msgs.get(0));
String msgId = msg.getJMSMessageID();
// Auto ack: acknowledging the message:
if (autoAck && !implicitAck) {
ConsumerAckRequest req = new ConsumerAckRequest(targetName, queueMode);
req.addId(msgId);
mtpx.sendRequest(req);
} else {
prepareAck(targetName, msgId, queueMode);
}
msg.session = this;