|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Application Header |
« View previous topic :: View next topic » |
Author |
Message
|
chris boehnke |
Posted: Thu Feb 25, 2010 1:12 pm Post subject: Application Header |
|
|
 Partisan
Joined: 25 Jul 2006 Posts: 369
|
Hi Guys,
I am working on a new requirement where we have to generate messages and sent it to the application.
Application wants us to add application header to the message.
Can we use MQRFH to add the application header?
I was looking into the structure of MQRFH and found that NameValueString can be used. I am not sure how to use it. Can any of you pls guide me on this.
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Thu Feb 25, 2010 1:18 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
You could, but there's nothing to stop you placing any data you like after the MQMD (or RFH2 if present) and calling it a header. So long as the target application has a way of identifying what is header and what is data (length, delimiter, etc) then it'll work fine.
Note the application will need to do something similar even if you add the "header" to the RFH2; when the message is retrieved the RFH2 will just show up as data.
Unless the target app is using JMS.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Feb 25, 2010 4:55 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Careful about not confusing application data (i.e. message body) with true headers.
We have a few applications that require a set of "headers" of which at least one is mandatory. This however is all part of the message payload.
Let's just say that our typical message is formed of
- application header
- additional header (optional depending on message type)
- meaningful payload (optional depending on message type and application response)
As you can see this has absolutely nothing to do with any type of "header" as understood by MQ and we would certainly not chain the app header with an MQMD or RFH2.
This having been pointed out, have fun  _________________ MQ & Broker admin |
|
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
|
|
|
|