|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Where does MsgDesc go in IBM::WMQ::MQQueue::Get? |
« View previous topic :: View next topic » |
Author |
Message
|
lifeng |
Posted: Fri Jan 18, 2008 6:56 am Post subject: Where does MsgDesc go in IBM::WMQ::MQQueue::Get? |
|
|
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 |
|
 |
Vitor |
Posted: Fri Jan 18, 2008 7:03 am Post subject: |
|
|
 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 |
|
 |
lifeng |
Posted: Fri Jan 18, 2008 7:34 am Post subject: |
|
|
Apprentice
Joined: 11 Jan 2008 Posts: 46
|
|
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
|
|
|
|