|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
[MQSeries Message] Nested Array Structure - Data Lost |
« View previous topic :: View next topic » |
Author |
Message
|
wishmaster |
Posted: Tue Feb 04, 2003 11:31 am Post subject: [MQSeries Message] Nested Array Structure - Data Lost |
|
|
Newbie
Joined: 14 Jan 2003 Posts: 8
|
I put a message of the following structure:
Header[]
Detail[]
The above structure is hierarchical and Detail[] is nested in Header[]. I
put a message on the queue. It has only one header with one detail, each
with a size of 65 and total should 130. But I browsed the data on the
queue, it showed up only the header (the first 65) and detail is not
there. Is this (nested array structure) supported by MQ? Anyone figure out a workaround?
Thanks a lot. |
|
Back to top |
|
 |
bduncan |
Posted: Tue Feb 04, 2003 12:20 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
I'm not sure if I understand your situation at all. MQSeries does not care about the content of the messages. You can stick text, xml, a serialized java object, etc., *anything* that you can turn into a string of characters. What API are you using? What does the datastructure look like before you put it into the message object? And what method are you using to serialize the data structure? _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
wishmaster |
Posted: Tue Feb 04, 2003 3:48 pm Post subject: |
|
|
Newbie
Joined: 14 Jan 2003 Posts: 8
|
bduncan wrote: |
I'm not sure if I understand your situation at all. MQSeries does not care about the content of the messages. You can stick text, xml, a serialized java object, etc., *anything* that you can turn into a string of characters. What API are you using? What does the datastructure look like before you put it into the message object? And what method are you using to serialize the data structure? |
I am using webMethods Enterprise Adapter for MQSeries to put msg onto the queue. The above structure will be serialized into a string like the following if I understand correctly from MQSeries perspective:
Header1...............Detail1...............Detail2............Detail3............
Header2...............Detail1...............Detail2............
Header3...............Detail1...............Detail2............Detail3............Detail4............
Header4...............Detail1...............
Is that message structure supported by MQ?
Thanks. |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Feb 05, 2003 5:27 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
As bduncan indicated, MQSeries doesn't really care what your message looks like. I'm not sure what your API is doing under the covers with MQ, but the MQPUT call would look something like:
Code: |
MQPUT(Hcon, /* connection handle */
Hobj, /* object handle */
&md, /* message descriptor */
&pmo, /* default options (datagram) */
messlen, /* message length */
buffer, /* message buffer */
&CompCode, /* completion code */
&Reason); /* reason code */
|
The buffer is simply the message that you want to write and the messlen is how long it is. If you are only getting the 'headers' of your message, I would question the message length that is being passed into the MQPUT. |
|
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
|
|
|
|