Author |
Message
|
ajay_barvey |
Posted: Thu Aug 26, 2004 12:41 am Post subject: How do identify an incoming msg type in MQ Integrator 2.1? |
|
|
Newbie
Joined: 26 Aug 2004 Posts: 2
|
I have created a flow in MQSI which may receive a XMl or a CSV file as the input. I want to split the process into 2 diffrent processing steps on basis of the type of input file.How does one do this in MQSI? Do I need to use the MRM defination?
THe exampl scenario is that I get a file from 2 systems in 2 diffrent formats, XMl and CSV. Now For xml I have a seperate processing branch and for CSV a separate proccesing branch. So I need to idebtify the input and then divert the message to the correct branch.How does one achieve this in MQSI?
Thanks for your time.
Ajay |
|
Back to top |
|
 |
fschofer |
Posted: Thu Aug 26, 2004 1:33 am Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
Hi,
you may read your message as a BLOB and test if the first char is "<".
After this use a RCD node or a compute node to specify if it is XML or CSV(MRM).
Greetings
Frank |
|
Back to top |
|
 |
ajay_barvey |
Posted: Thu Aug 26, 2004 1:54 am Post subject: Is there a way where I can define the expected msh format? |
|
|
Newbie
Joined: 26 Aug 2004 Posts: 2
|
Thanks Frank, Is there a way where I can define the expected message format and the message gets routed to the appropriate branch? Something like we have in Webmethods? |
|
Back to top |
|
 |
kirani |
Posted: Thu Aug 26, 2004 4:48 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
I don't know about Webmethods, but in WMQI you have IBM primitive nodes which can be used to do message processing.
You can use RouteToLabel node to route to CSV or XML processing label nodes. Each of these label nodes will be connected to a set of nodes that will process your input message. Your message flow will look like this,
MQInput->Compute->RouteToLabel
Label1(CSV)->RCD->....
Label2(XML)->RCD->...
In your compute node you can check the type of input message and set router list for routing. _________________ 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 |
|
 |
shanson |
Posted: Fri Aug 27, 2004 7:00 am Post subject: |
|
|
 Partisan
Joined: 17 Oct 2003 Posts: 344 Location: IBM Hursley
|
Do the XMI and the CSV files have the same logical format? That is, could you create a single XML schema that described the structure of both? If so, consider having a message set with a single message model and two physical formats, an XML one and a TDS one. That way the only parameter that you need to vary when you have established the nature of the message is the physical format. |
|
Back to top |
|
 |
|