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 » Putting message to Websphere MQ thro C#

Post new topic  Reply to topic
 Putting message to Websphere MQ thro C# « View previous topic :: View next topic » 
Author Message
manikabedi
PostPosted: Tue Mar 16, 2004 6:51 am    Post subject: Putting message to Websphere MQ thro C# Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Mar 16, 2004 7:00 am    Post subject: Reply with quote

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
View user's profile Send private message
JasonE
PostPosted: Tue Mar 16, 2004 7:30 am    Post subject: Reply with quote

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
View user's profile Send private message
RogerLacroix
PostPosted: Tue Mar 16, 2004 9:32 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Quote:
Perhaps write your own.


Why not try out MQ Visual Edit? It can view and edit messages of any size.

For more information or to try-out a 30-day trial of MQ Visual Edit, go to:
http://www.capitalware.biz/products.html

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
manikabedi
PostPosted: Tue Mar 16, 2004 10:41 pm    Post subject: Thanks Reply with quote

Newbie

Joined: 16 Mar 2004
Posts: 3

Thanks I got it working. MQ Visual Edit is a great help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Putting message to Websphere MQ thro C#
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.