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 » Where does MsgDesc go in IBM::WMQ::MQQueue::Get?

Post new topic  Reply to topic
 Where does MsgDesc go in IBM::WMQ::MQQueue::Get? « View previous topic :: View next topic » 
Author Message
lifeng
PostPosted: Fri Jan 18, 2008 6:56 am    Post subject: Where does MsgDesc go in IBM::WMQ::MQQueue::Get? Reply with quote

Apprentice

Joined: 11 Jan 2008
Posts: 46

Hi,

I have a working program that accesses MQSeries through C based API. Now I need to convert the program to C++ .Net and talk to MQ through MQ Client Classes for .Net.

I have already successfully converted MQCONN, MQOPEN and MQPUT. In other words, I can now put messages into a queue. Now I am working on MQGET and having a problem.

In my old C code, we use the following API to call MQGET:

MQGET (Hconn, Hobj, MsgDesc, GetMsgOpts, BufferLength,
Buffer, DataLength, CompCode, Reason)

Specifically, we use MsgDesc to set message descriptions, such as:
md.Encoding = MQENC_NATIVE;
md.CodedCharSetId = MQCCSI_Q_MGR;

But now with IBM::WMQ::MQQueue::Get, the MsgDesc is nolonger a parameter. I just wonder what do I do with those MsgDesc settings when I convert it. Simply ignore them? or there are other methods to call to set them?

Please advise!

Thanks in advance!

Lifeng
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jan 18, 2008 7:03 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Encoding and Character Set are properties of the MQMessage object. Like the rest of the MQMD.

Check out the "Using .NET" manual for full details.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lifeng
PostPosted: Fri Jan 18, 2008 7:34 am    Post subject: Reply with quote

Apprentice

Joined: 11 Jan 2008
Posts: 46

Thanks for the info!!!
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 » Where does MsgDesc go in IBM::WMQ::MQQueue::Get?
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.