Hi all,
I am new to MQSeries. Trying my Servlet to put a message into a queue. I am able to put the message. But while extracting it I find that the first character is nothing, second is " ", and the first character of the actual (sent)message is the third character in the received message.
I have declared the options as follows:
MQMessage sendMsg = new MQMessage();
sendMsg.writeUTF("<msg>Hello from Sheila!</msg>");
sendMsg.format = MQC.MQFMT_STRING;
MQPutMessageOptions pmo = new MQPutMessageOptions(); pmo.options = 98;
sendMsg.messageType = 1;
sendMsg.report = 0;
sendMsg.replyToQueueName = "RESPONSE_QUEUE";
sendMsg.replyToQueueManagerName = m_qManager;
sendMsg.priority = 0;
sendMsg.expiry = -1;
m_system_default_local_queue.put(sendMsg, pmo);
Could you please help me ?
TIA,
Sheila
I am new to MQSeries. Trying my Servlet to put a message into a queue. I am able to put the message. But while extracting it I find that the first character is nothing, second is " ", and the first character of the actual (sent)message is the third character in the received message.
I have declared the options as follows:
MQMessage sendMsg = new MQMessage();
sendMsg.writeUTF("<msg>Hello from Sheila!</msg>");
sendMsg.format = MQC.MQFMT_STRING;
MQPutMessageOptions pmo = new MQPutMessageOptions(); pmo.options = 98;
sendMsg.messageType = 1;
sendMsg.report = 0;
sendMsg.replyToQueueName = "RESPONSE_QUEUE";
sendMsg.replyToQueueManagerName = m_qManager;
sendMsg.priority = 0;
sendMsg.expiry = -1;
m_system_default_local_queue.put(sendMsg, pmo);
Could you please help me ?
TIA,
Sheila