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 Discussion » Putting multiple messages

Post new topic  Reply to topic
 Putting multiple messages « View previous topic :: View next topic » 
Author Message
maxyen
PostPosted: Wed Aug 21, 2002 5:35 pm    Post subject: Putting multiple messages Reply with quote

Newbie

Joined: 08 Aug 2002
Posts: 8

I need some help for putting multiple messages in a queue. For simplicity I have a header, detail and end of message data to be placed in a queue. I am thinking of 2 ways:
1) concatenating all of them and send them at once. I am
wondering if this is the best way of doing this.
2) put one message at a time?
Then the question is how do I get them as a group?

What is the most common and appropriate solution?

What are the pros and cons for each solution?

Thanks for any help...

MY
Back to top
View user's profile Send private message
hello
PostPosted: Tue Sep 03, 2002 10:09 pm    Post subject: Try to use topic Reply with quote

Newbie

Joined: 01 Sep 2002
Posts: 6

I am not quite understand the question you post, but I think this what you mean.

You want to put several messages in one queue and categorized them as one group.

Then you can use topic to guide the message into one group. Such as

/sport/soccer

All the messages will be come under the title of /sport/soccer. You can call back the messages anytime by calling the topic.

Hope this idea will help, only if what I am thinking is true.
_________________
Regards,
HelloWorld
Back to top
View user's profile Send private message Send e-mail
bob_buxton
PostPosted: Wed Sep 04, 2002 12:40 am    Post subject: Reply with quote

Master

Joined: 23 Aug 2001
Posts: 266
Location: England

Concatenating all of your data into a single MQ message is quite a good idea since it keeps everything together and avoids the overheads of multiple messages. The down side is message size - how many detail records and how big are they. If the size/number of detail records is variable it may be easier to write each as individual mesages.

If you do issue mulitiple messages you can use the MQPMO_SYNCPOINT option to ensure that the batch of messages is complete - even if the applications fails you wouldn't have a header without the associated trailer.

You can also use the group id and associated get/put options to identify the messages as a logical group.

Bob
_________________
Bob Buxton
Ex-Websphere MQ Development
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 » General Discussion » Putting multiple messages
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.