|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
amqmdnet-> IBM.WMQ -> Message size exceed. |
« View previous topic :: View next topic » |
Author |
Message
|
Rakesh0221 |
Posted: Wed Jun 01, 2011 7:06 am Post subject: amqmdnet-> IBM.WMQ -> Message size exceed. |
|
|
Newbie
Joined: 01 Jun 2011 Posts: 1
|
Hi All,
We have .NET 3.0 web service to put message to distributed Q.
The distributed Q puts messages to Mainframe Q.
We are using following code to put messages.
MQEnvironment.Hostname = ConfigurationSettings.AppSettings["MQHostName"];
MQEnvironment.Port = Convert.ToInt32(ConfigurationSettings.AppSettings["MQPort"]);
MQEnvironment.Channel = ConfigurationSettings.AppSettings["MQChannel"];
queueManager = new MQQueueManager(ConfigurationSettings.AppSettings["MQManager"]);
queue = queueManager.AccessQueue((ConfigurationSettings.AppSettings["MQQueueName"]), MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING);
MQMessage queueMessage = new MQMessage();
string messageToMQ = pstrBody.Trim(); // Message to put on MQ
queueMessage.WriteString(messageToMQ);
queueMessage.Format = MQC.MQFMT_STRING;
queue.Put(queueMessage,new MQPutMessageOptions());
queue.Close();
queueManager.Disconnect();
queueManager.Close();
The problem here is when we try to put message with size < 15000, It works fine.
But when we put message >15000 it adds some garbage value and mainframe Q receives 32000+ message.
Any help on this issue would be highly appreciated. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jun 01, 2011 1:22 pm Post subject: Re: amqmdnet-> IBM.WMQ -> Message size exceed. |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Rakesh0221 wrote: |
Hi All,
We have .NET 3.0 web service to put message to distributed Q.
The distributed Q puts messages to Mainframe Q.
We are using following code to put messages.
MQEnvironment.Hostname = ConfigurationSettings.AppSettings["MQHostName"];
MQEnvironment.Port = Convert.ToInt32(ConfigurationSettings.AppSettings["MQPort"]);
MQEnvironment.Channel = ConfigurationSettings.AppSettings["MQChannel"];
queueManager = new MQQueueManager(ConfigurationSettings.AppSettings["MQManager"]);
queue = queueManager.AccessQueue((ConfigurationSettings.AppSettings["MQQueueName"]), MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING);
MQMessage queueMessage = new MQMessage();
string messageToMQ = pstrBody.Trim(); // Message to put on MQ
queueMessage.WriteString(messageToMQ);
queueMessage.Format = MQC.MQFMT_STRING;
queue.Put(queueMessage,new MQPutMessageOptions());
queue.Close();
queueManager.Disconnect();
queueManager.Close();
The problem here is when we try to put message with size < 15000, It works fine.
But when we put message >15000 it adds some garbage value and mainframe Q receives 32000+ message.
Any help on this issue would be highly appreciated. |
Are you sure you're not running into some known bug?
Is your WMQ software at the latest level (7.0.1.5)?
Have fun and upgrade.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|