MessageId
public byte[] MessageId {get; set;}
For an MQQueue.Get() call, this field specifies the message identifier of the message to be retrieved. Normally, the queue manager returns the first message with a message identifier and correlation identifier that match those specified. The special value MQC.MQMI_NONE allows any message identifier to match.
For an MQQueue.Put() call, this specifies the message identifier to use. If MQC.MQMI_NONE is specified, the queue manager generates a unique message identifier when the message is put. The value of this member variable is updated after the put, to indicate the message identifier that was used.
/* 提交事务 */
qMgr.commit();
logPrint("c:\\sender.log",
" The send message is : " + msgString
+ ", messageId is : "+new String(outMsg.messageId)+", correlationId is : "
+new String(outMsg.correlationId)+"\n");
// System.out.println(" The message has been Successfully put\n");