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 » General Discussion » User-defined header

Post new topic  Reply to topic
 User-defined header « View previous topic :: View next topic » 
Author Message
anveshita
PostPosted: Mon Oct 05, 2009 2:37 pm    Post subject: User-defined header Reply with quote

Master

Joined: 27 Sep 2004
Posts: 254
Location: Jambudweepam

Can some one tell me wha is a user-defined header? I have tried searching the IBM documentation and at MQ series.net. May be I am missing something. Could you please point me to the right document that contains these details?

I was under the impression that "user defined header" was part of the variable part in MQRFH2 heder of a JMS message. Is that right?

Quote:


Variable portion
The variable portion follows the fixed portion. The variable portion contains a variable number of MQRFH2 folders. Each folder contains a variable number of elements or properties. Folders group together related properties. The MQRFH2 headers created by JMS can contain up to three folders:
The <mcd> folder
This contains properties that describe the shape or format of the message. For example, the Msd property identifies the message as being Text, Bytes, Stream, Map, Object, or null. This folder is always present in a JMS MQRFH2.
The <jms> folder
This is used to transport JMS header fields, and JMSX properties that cannot be fully expressed in the MQMD. This folder is always present in a JMS MQRFH2.
The <usr> folder
This is used to transport any application-defined properties associated with the message. This folder is present only if the application has set some application-defined properties.
The <mqext> folder
This is used to transport IBM® defined properties that are used only by WebSphere Application Server. This folder is present only if the application has set at least one of these properties


I was thinking that the user defined header is The <usr> folder. Please let me know what is a "user-defined" header as regards to MQ
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Oct 05, 2009 4:31 pm    Post subject: Re: User-defined header Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

anveshita wrote:
I was thinking that the user defined header is The <usr> folder.


It's clearly not a header per se, but it is a good place to put user defined values.

anveshita wrote:
Please let me know what is a "user-defined" header as regards to MQ


Remember that WMQ doesn't look at the structure of anything past the MQMD so a user defined header is anything which the application has placed in the payload which the application doesn't consider data.

A better question is where have you seen this term, and what do you plan to use such a header for?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Oct 05, 2009 4:50 pm    Post subject: Re: User-defined header Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Vitor wrote:
Remember that WMQ doesn't look at the structure of anything past the MQMD so a user defined header is anything which the application has placed in the payload which the application doesn't consider data.


The format field of the MQMD may tell MQ that there are one or more headers (DLH, IIH, XMIT, etc) in the buffer, in which case MQ will be looking past the MQMD.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Oct 05, 2009 4:53 pm    Post subject: Re: User-defined header Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

PeterPotkay wrote:
The format field of the MQMD may tell MQ that there are one or more headers (DLH, IIH, XMIT, etc) in the buffer, in which case MQ will be looking past the MQMD.


I thought the additonal headers were added to the front of the message?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Mon Oct 05, 2009 5:06 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

A MQRFH header can be used to define structured name / value pairs, but they are a bit messy to implement in most programming languages.

A user defined header is invented by the user in a similar format to well known MQ headers (StuctId, Version, Length, CCSID fields etc) but it will be ignored by MQ. MQ won't be able to parse, skip over, or convert it.

These days, user defined MQ headers or structures are best implemented using XML in the MQ Message Data, or stored in MQ Message Properties (new feature in v7.0).
_________________
Glenn
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Oct 05, 2009 6:18 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9472
Location: US: west coast, almost. Otherwise, enroute.

Yay for Message Properties!
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Oct 05, 2009 6:33 pm    Post subject: Re: User-defined header Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Vitor wrote:
PeterPotkay wrote:
The format field of the MQMD may tell MQ that there are one or more headers (DLH, IIH, XMIT, etc) in the buffer, in which case MQ will be looking past the MQMD.


I thought the additonal headers were added to the front of the message?

They are in front of the application data, but outside of the MQMD.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Oct 06, 2009 1:12 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

bruce2359 wrote:
Yay for Message Properties!
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 06, 2009 7:21 am    Post subject: Re: User-defined header Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

PeterPotkay wrote:
Vitor wrote:
PeterPotkay wrote:
The format field of the MQMD may tell MQ that there are one or more headers (DLH, IIH, XMIT, etc) in the buffer, in which case MQ will be looking past the MQMD.


I thought the additonal headers were added to the front of the message?

They are in front of the application data, but outside of the MQMD.


Yes, I thought they were in front of the original MQMD, i.e prepended to the original message.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Oct 06, 2009 7:32 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9472
Location: US: west coast, almost. Otherwise, enroute.

IMS...

What ends up being send from a transmission queue consists of a new MQMD, followed by XQH, follwed by original MQMD, followed by application payload.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 06, 2009 7:39 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bruce2359 wrote:
IMS...

What ends up being send from a transmission queue consists of a new MQMD, followed by XQH, follwed by original MQMD, followed by application payload.


I thought that.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Oct 06, 2009 8:01 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9472
Location: US: west coast, almost. Otherwise, enroute.

I believe a msg in the dead-letter queue is similarly composed - new MQMD, DLH, original MQMD, app data.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 06, 2009 8:02 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bruce2359 wrote:
I believe a msg in the dead-letter queue is similarly composed - new MQMD, DLH, original MQMD, app data.


I thought that too.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Oct 06, 2009 4:57 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

bruce2359 wrote:
I believe a msg in the dead-letter queue is similarly composed - new MQMD, DLH, original MQMD, app data.


The Message Descriptor (MQMD) of a MQ message is not part of the Message Data payload, so it does not come before or after anything in the Message Data, it is separate. ie. the Message Data for a message on a DLQ consists of DLH, original MQMD, app data.
_________________
Glenn
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 » General Discussion » User-defined 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.