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 » How do I put the message in MQHRF2 format (C++)?

Post new topic  Reply to topic
 How do I put the message in MQHRF2 format (C++)? « View previous topic :: View next topic » 
Author Message
themqguy
PostPosted: Fri Nov 19, 2004 9:10 am    Post subject: How do I put the message in MQHRF2 format (C++)? Reply with quote

Newbie

Joined: 19 Nov 2004
Posts: 2

I try to put the message on the queue with the code below.
But when I use the Message Viewer to see the message, format is always in MQSTR format.
How do I change the code so that it will put it in MQHRF2 format?
Thank you.

I am using C++ calls.
--------------------------------------------------
ImqMessage mqMsg;

//Set Message Attributes
mqMsg.setFormat(MQFMT_RF_HEADER_2);
ImqString mqString = "testing 123...";

//Initialize the Message Id
mqMsg.setMessageId();

// Initialize the Correlation Id
mqMsg.setCorrelationId();

// Send message to queue
m_mqQueue.put(mqMsg);
--------------------------------------------------
Back to top
View user's profile Send private message
kirani
PostPosted: Fri Nov 19, 2004 9:32 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

You are doing it correctly. Try passing in constant string MQHRF2bb where b is SPACE char.
Also, try to retrieve this property and print it on the screen after you set it.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » How do I put the message in MQHRF2 format (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.