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 Java / JMS » MQHRF2 problem

Post new topic  Reply to topic
 MQHRF2 problem « View previous topic :: View next topic » 
Author Message
themqguy
PostPosted: Fri Nov 19, 2004 9:16 am    Post subject: MQHRF2 problem 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
RogerLacroix
PostPosted: Fri Nov 19, 2004 9:33 am    Post subject: Reply with quote

Jedi Knight

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

Please do not make multiple posts for the same question (the API forum is the correct place rather than Java forum).

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
kirani
PostPosted: Fri Nov 19, 2004 10:22 am    Post subject: Reply with quote

Jedi Knight

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

Please do not post duplicate questions.
_________________
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 Java / JMS » MQHRF2 problem
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.