|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Loading Message on a Queue in Random Order. |
« View previous topic :: View next topic » |
Author |
Message
|
meriton |
Posted: Thu Jan 29, 2004 8:40 pm Post subject: Loading Message on a Queue in Random Order. |
|
|
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 |
|
 |
Michael Dag |
Posted: Fri Jan 30, 2004 12:40 am Post subject: |
|
|
 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 |
|
 |
bower5932 |
Posted: Fri Jan 30, 2004 6:17 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|