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 Java / JMS » Loading Message on a Queue in Random Order.

Post new topic  Reply to topic
 Loading Message on a Queue in Random Order. « View previous topic :: View next topic » 
Author Message
meriton
PostPosted: Thu Jan 29, 2004 8:40 pm    Post subject: Loading Message on a Queue in Random Order. Reply with quote

Novice

Joined: 07 Aug 2002
Posts: 24

Hi All,

We have a collation process which collates messages from a queue and creates a flat file for each batch (group of message).

The collation process written in java and runs on UNIX , reads a local queue on unix. Messages originate from mainframe queue and sent to unix queue, this causes messages for a batch to appear in a random order.

Requirement

For load testing collation process, we are looking at writing a test load script to put messages on the queue. It can be done with a simple message load program. The challenge is to put messages for a batch in random order.

Whats the best way to do this? Any sample code..

TIA
Back to top
View user's profile Send private message
Michael Dag
PostPosted: Fri Jan 30, 2004 12:40 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

Ok first of all, when going from batch (files) to messaging the first thing to do is ged rid of message affinity or message order dependency!
This can be a real killer! What if one message ends up on a dead letter queue? all others must wait for that one message to be reprocessed...

Under normal operation message sequence is usually kept, so what interests me is how you get the messages in random order on the unix side?
Are you using multiple paths for the messages to travel?

Michael
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
bower5932
PostPosted: Fri Jan 30, 2004 6:17 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I'll also cast my vote for the avoidance of message affinity.

As far as message ordering, there is a section in the Intercommunication manual that lists some things that have to be done in order for message sequence to be guaranteed. One of the items is related to the dead letter queue.

As far as putting them onto the queue in random order, you can simulate this with the message priority. You'll just have to make sure that you randomly change the priority of each message and have your queue built based on a MSGDLVSQ of PRIORITY.
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 » IBM MQ Java / JMS » Loading Message on a Queue in Random Order.
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.