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 » Application Header

Post new topic  Reply to topic
 Application Header « View previous topic :: View next topic » 
Author Message
chris boehnke
PostPosted: Thu Feb 25, 2010 1:12 pm    Post subject: Application Header Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Feb 25, 2010 1:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Feb 25, 2010 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Application Header
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.