C# IBM MQ client sending my own messageId
<p>I am sending an MQ message and getting a messageID and correlationID back in return as expected, and I can capture the response from specific message that I send using the messageID returned by the MQ server.</p>

<p>I put my application into a load testing tool and I saw that in some cases the messageID returned by the queue manager was the same as a previous message, and in these cases the app failed to read the next message with the same messageID.</p>

<p>I'm not the owner of the queue manager and the response from the admin was "created your own message id".</p>

<p>Can I do that? Does the messageID need to have a specific format? </p>

<p>This is my code : </p>

<pre><code>            message = strInputMsg;
            queueMessage = new MQMessage();
            queueMessage.WriteString(message);
            queueMessage.Format = MQC.MQFMT_STRING;
            queueMessage.Expiry = timeOutExpiry;
            queueMessage.ReplyToQueueName = QueueNameExpiry;
            queuePutMessageOptions = new MQPutMessageOptions();
            queuePutMessageOptions.Options =       MQC.MQRO_COPY_MSG_ID_TO_CORREL_ID;
            queue.Put(queueMessage, queuePutMessageOptions);
            bytReturn = queueMessage.MessageId;
</code></pre>

<p>So can I set the MessageID property to my own message ID value before I send the message, like the below?</p>

<pre><code>queueMessage.MessageId = myOwnMessageId
</code></pre>