|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ImqMessage datapointer or bufferpointer |
« View previous topic :: View next topic » |
Author |
Message
|
Breezer |
Posted: Mon Feb 24, 2003 2:40 am Post subject: ImqMessage datapointer or bufferpointer |
|
|
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 |
|
 |
clindsey |
Posted: Mon Feb 24, 2003 8:40 am Post subject: |
|
|
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 |
|
 |
Breezer |
Posted: Mon Feb 24, 2003 11:39 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|