|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Using a Message flow for 4 types of XML messages |
« View previous topic :: View next topic » |
Author |
Message
|
laddha |
Posted: Thu May 22, 2003 7:24 am Post subject: Using a Message flow for 4 types of XML messages |
|
|
 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 |
|
 |
RichA |
Posted: Thu May 22, 2003 7:33 am Post subject: |
|
|
 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 |
|
 |
shalabh1976 |
Posted: Thu May 22, 2003 8:39 am Post subject: |
|
|
 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 |
|
 |
kirani |
Posted: Thu May 22, 2003 3:38 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|