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 » General IBM MQ Support » [MQSeries Message] Nested Array Structure - Data Lost

Post new topic  Reply to topic
 [MQSeries Message] Nested Array Structure - Data Lost « View previous topic :: View next topic » 
Author Message
wishmaster
PostPosted: Tue Feb 04, 2003 11:31 am    Post subject: [MQSeries Message] Nested Array Structure - Data Lost Reply with quote

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
View user's profile Send private message
bduncan
PostPosted: Tue Feb 04, 2003 12:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
wishmaster
PostPosted: Tue Feb 04, 2003 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Wed Feb 05, 2003 5:27 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » [MQSeries Message] Nested Array Structure - Data Lost
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.