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 » ImqMessage datapointer or bufferpointer

Post new topic  Reply to topic
 ImqMessage datapointer or bufferpointer « View previous topic :: View next topic » 
Author Message
Breezer
PostPosted: Mon Feb 24, 2003 2:40 am    Post subject: ImqMessage datapointer or bufferpointer Reply with quote

Newbie

Joined: 20 Feb 2003
Posts: 4

Hello,

I'm creating a full trace for an MQ application. When I write the contents of an ImqMessage (C++ interface), I can use the dataPointer() and dataLength() members of the ImqMessage object. This works perfectly.
However, when I wrote the message to the ImqQueue object (ImqQueue::write(ImqMessage,ImqPutMessageOptions)), I cannot use dataPointer() and dataLength(). The dataLength() function returns 0, while there is actually data in the buffer. I can call bufferPointer() and bufferLength(), they work allright, but I wander why !! When do I have to use what function?

Thx in advance,
Tim
Back to top
View user's profile Send private message
clindsey
PostPosted: Mon Feb 24, 2003 8:40 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

In my opion, the queue object is only concerned with the encapsulated message and not the message attributes. If you want to address the specific message attributes or contents, then use the message object.

Charlie
Back to top
View user's profile Send private message
Breezer
PostPosted: Mon Feb 24, 2003 11:39 pm    Post subject: Reply with quote

Newbie

Joined: 20 Feb 2003
Posts: 4

I did. But the problem is sometimes the dataPointer is NULL, and the dataLength = 0, while at the same time the bufferPointer and bufferLength contain the valid data. In the docs, they explain the dataPointer should be used. I never call any functions regarding the ImqQueue object !
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 » ImqMessage datapointer or bufferpointer
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.