|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Putting message to Websphere MQ thro C# |
« View previous topic :: View next topic » |
Author |
Message
|
manikabedi |
Posted: Tue Mar 16, 2004 6:51 am Post subject: Putting message to Websphere MQ thro C# |
|
|
Newbie
Joined: 16 Mar 2004 Posts: 3
|
Hi,
I am trying to put a message to a local queue in Websphere MQ. My problem is my message gets truncated when I read it from the Websphere MQ explorer. Below is the code I am writing
MQQueueManager qMgr = new MQQueueManager(strQueueManager);
MQQueue queue = qMgr.AccessQueue(strPutQueueName, MQC.MQOO_OUTPUT);
MQMessage message = new MQMessage();
message.WriteString(strMessageBody);
message.Format = MQC.MQFMT_STRING;
queue.Put(message);
strMessageBody is a string I want to put in the message. The string has XML content and is long.
Any help is highly appreciated.
Thanks
Manika |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Mar 16, 2004 7:00 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Use something other than MQSeries Explorer to read your message.
Perhaps write your own. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
JasonE |
Posted: Tue Mar 16, 2004 7:30 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
Yes, mqexplorer only shows the first 200 characters, which probably is the truncation you are talking about. amqsbcg QUEUE QM would handle a upto about 32k |
|
Back to top |
|
 |
RogerLacroix |
Posted: Tue Mar 16, 2004 9:32 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
|
Back to top |
|
 |
manikabedi |
Posted: Tue Mar 16, 2004 10:41 pm Post subject: Thanks |
|
|
Newbie
Joined: 16 Mar 2004 Posts: 3
|
Thanks I got it working. MQ Visual Edit is a great help. |
|
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
|
|
|
|