ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » amqmdnet-> IBM.WMQ -> Message size exceed.

Post new topic  Reply to topic
 amqmdnet-> IBM.WMQ -> Message size exceed. « View previous topic :: View next topic » 
Author Message
Rakesh0221
PostPosted: Wed Jun 01, 2011 7:06 am    Post subject: amqmdnet-> IBM.WMQ -> Message size exceed. Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Jun 01, 2011 1:22 pm    Post subject: Re: amqmdnet-> IBM.WMQ -> Message size exceed. Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » amqmdnet-> IBM.WMQ -> Message size exceed.
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.