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 » Using a Message flow for 4 types of XML messages

Post new topic  Reply to topic
 Using a Message flow for 4 types of XML messages « View previous topic :: View next topic » 
Author Message
laddha
PostPosted: Thu May 22, 2003 7:24 am    Post subject: Using a Message flow for 4 types of XML messages Reply with quote

Apprentice

Joined: 20 Mar 2003
Posts: 27

Hi,
I had a design issue.
May be simple for you.
I had a input queue for my message flow.
I am putting totally different xml messages in the input queue.
Now, issue is how I should some how find out inside message flow which XML I am receiving?

I am thinking of using RFH2 for this.

Please let me know your valuable feedback on this.

Thanks,
Prasanna
Back to top
View user's profile Send private message
RichA
PostPosted: Thu May 22, 2003 7:33 am    Post subject: Reply with quote

Centurion

Joined: 14 Mar 2002
Posts: 102

You can test if a tag exists in the XML using the cardinality, as I understand it, so you could use filter nodes checking the cardinality of tags unique to each XML to separate the messages into different flows, providing the content is recognizably different. Am I making sense? (This is the mothod I'm using anyway)
Back to top
View user's profile Send private message MSN Messenger
shalabh1976
PostPosted: Thu May 22, 2003 8:39 am    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

Suppose your 4 xml messages have the root element as A, B, C and D

Then in your compute node you can write something like :
If InputRoot.XML.A IS NOT NULL THEN
SET InputLocalEnvironment.Destination.OuterList.DestinationData.labelname = 'Msg1';
End if;

If InputRoot.XML.B IS NOT NULL THEN
SET InputLocalEnvironment.Destination.OuterList.DestinationData.labelname = 'Msg2';
End if;

If InputRoot.XML.C IS NOT NULL THEN
SET InputLocalEnvironment.Destination.OuterList.DestinationData.labelname = 'Msg3';
End if;

If InputRoot.XML.D IS NOT NULL THEN
SET InputLocalEnvironment.Destination.OuterList.DestinationData.labelname = 'Msg4';
End if;

Now you connect the output of the compute node to a Route To Label node , Have 4 Label nodes with the names as Msg1, Msg2, Msg3 and Msg4
and connect your compute nodes to these Label nodes.


Last edited by shalabh1976 on Thu May 22, 2003 6:47 pm; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kirani
PostPosted: Thu May 22, 2003 3:38 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Or could have client program set some kind of indicator in MQMD.ApplIdentityData and then within your message flow route to different paths to handle different types of messages.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Using a Message flow for 4 types of XML 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.