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 » WebSphere Message Broker (ACE) Support » Splitting & Grouping of Messages

Post new topic  Reply to topic
 Splitting & Grouping of Messages « View previous topic :: View next topic » 
Author Message
Janice_Shania
PostPosted: Mon Oct 02, 2006 11:46 pm    Post subject: Splitting & Grouping of Messages Reply with quote

Novice

Joined: 25 Sep 2006
Posts: 12

Hi,

I need to split an incoming message(based on a delimiter) containing a number of sub-messages and perform various operations on the individual messages.
There after these individual messages need to be grouped in the same order.

Can anyone please suggest an approach for this in WMQI/WMB. Does WMB have any inbuilt functionality?

Thanks & Regards
Janice
Back to top
View user's profile Send private message
Edde
PostPosted: Tue Oct 03, 2006 12:49 am    Post subject: Re: Splitting & Grouping of Messages Reply with quote

Acolyte

Joined: 01 Oct 2006
Posts: 67
Location: Moscow, Russia

You can do this using one message flow.

TDS parser can help you to split incoming message into sub-messages.
Then in Compute node you can propagate sub-messages one by one.

After this may be ResetContentDescriptor to parse sub-messages and processing routine for one sub-message.

And finally you can use a Compute node that combines your sub-messages in Environment tree or shared variable.
Total count of sub-messages you can store also in a shared variable.

This scheme can be modified to use two message flows. In that case you can use shared variables or external data store (e.g. database table) to combine processed sub-messages.


Last edited by Edde on Tue Oct 03, 2006 12:54 am; edited 2 times in total
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Tue Oct 03, 2006 12:50 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Janice_Shania,

Use a message set, get the parsed message and loop through using references and make multiple requests.

On the return, use MQGet or Aggregation(propagate using Aggregate) to group the messages back.

A little more info wil help us understand your reqirement better, but on a higer level of understanding this should be a simple approach.

Regards.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Tue Oct 03, 2006 1:52 am    Post subject: Re: Splitting & Grouping of Messages Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Edde wrote:
In that case you can use shared variables or external data store (e.g. database table) to combine processed sub-messages.


You can't share variables betweeen different flows. Only between different invocations of the same flow.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Edde
PostPosted: Tue Oct 03, 2006 2:14 am    Post subject: Re: Splitting & Grouping of Messages Reply with quote

Acolyte

Joined: 01 Oct 2006
Posts: 67
Location: Moscow, Russia

jefflowrey wrote:
You can't share variables betweeen different flows. Only between different invocations of the same flow.

Of course.

I mean that you can store some input messages of your flow in a shared variable.

But reliability...

Aggregate or database should be a better way.
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 » WebSphere Message Broker (ACE) Support » Splitting & Grouping of 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.