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 » How do identify an incoming msg type in MQ Integrator 2.1?

Post new topic  Reply to topic
 How do identify an incoming msg type in MQ Integrator 2.1? « View previous topic :: View next topic » 
Author Message
ajay_barvey
PostPosted: Thu Aug 26, 2004 12:41 am    Post subject: How do identify an incoming msg type in MQ Integrator 2.1? Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
fschofer
PostPosted: Thu Aug 26, 2004 1:33 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ajay_barvey
PostPosted: Thu Aug 26, 2004 1:54 am    Post subject: Is there a way where I can define the expected msh format? Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
kirani
PostPosted: Thu Aug 26, 2004 4:48 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
shanson
PostPosted: Fri Aug 27, 2004 7:00 am    Post subject: Reply with quote

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
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 » How do identify an incoming msg type in MQ Integrator 2.1?
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.