|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to identify the type of the message |
« View previous topic :: View next topic » |
Author |
Message
|
rajesht1 |
Posted: Thu Aug 05, 2010 8:48 pm Post subject: How to identify the type of the message |
|
|
Novice
Joined: 23 Jun 2010 Posts: 21
|
Hi all,
I am getting a message from a MQINPUT node I dont know the format of the message(whether it is XML,XMLNSC,BLOB,.....).After the MQINPUT node there is a compute node,In the compute node I what to know the format of the message. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Aug 06, 2010 4:17 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
The format of the message is not the same as the domain WMB has it in. This domain will be whatever the MQInput node is set to (probably BLOB) unless whoever put the message popped an RFH2 header on it.
The format of the message could be anything. It could actually be a BLOB, it could be an XML document (in which case you should use the XMLNSC domain on it, maybe the XMLNS at a push and never the XML one) or it could be some custom or delimited format that you need a message set to interpret.
You could try parsing it into XMLNSC & if that fails try parsing it into every message set you have & then assuming it's a BLOB. Or you could try asking the guy who sends it to include an RFH2.
Or you could question a design that has opaque messages just turning up on a single queue. As a minimum you should segrigate BLOB, XML & other at which point you identify the domain by the door it walks in through. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
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
|
|
|
|