|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How can I summarize or aggegrate a batch of messages? |
« View previous topic :: View next topic » |
Author |
Message
|
Paul D |
Posted: Tue Dec 11, 2001 5:26 pm Post subject: |
|
|
 Master
Joined: 16 May 2001 Posts: 200 Location: Green Bay Packer Country
|
I'm trying to figure out a way to summarize or aggregrate a group of messages running through MQSI. This is a "batch" file turned into MQ messages that I need to group together and combine down into summarized XML messages. Here's a quick example (omitting XML) to get across the point, I have four messages in my batch:
123,AA,1.00
123,BB,2.00
124,AA,2.00
124,BB,2.00
And want two messages like this as my result, summarizing that numeric field:
123,3.00
124,4.00
Thought about using a database table to hold summarized rows, but what's a good way to get those out? I can figure on having an EOF type message to mark the end of the batch, so that might help trigger off another flow. Maybe use the MQGet node? I know I might be asking MQSI to do something it's not designed to do, I'm just looking for options.
Thanks in Advance!!! |
|
Back to top |
|
 |
NickB |
Posted: Wed Dec 12, 2001 3:26 am Post subject: |
|
|
Centurion
Joined: 20 May 2001 Posts: 107 Location: Zurich Financial Services
|
You could try using the Aggregator plug-in node which is available as support pac IA72.
|
|
Back to top |
|
 |
cronydude |
Posted: Fri Dec 14, 2001 3:21 am Post subject: |
|
|
 Voyager
Joined: 11 Nov 2001 Posts: 85 Location: US
|
hi dix,
U can get nodes for aggregating messages with MQSI Version 2.1 released around 27th Nov.Check out.
regards
crony |
|
Back to top |
|
 |
zpat |
Posted: Fri Dec 14, 2001 8:45 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
WMQI 2.1 (and the support Pac) only aggregate messages that were initially generated in a message flow.
If the messages come in from elsewhere without the "fan out" being started from MQSI (and therefore recorded) you can't use the Aggregation nodes to detect when they have all arrived.
In this case you would probably want a "roll your own" method using a database record and compute node to decide when to issue the summary message. |
|
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
|
|
|
|