Author |
Message
|
anveshita |
Posted: Mon Oct 05, 2009 2:37 pm Post subject: User-defined header |
|
|
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 |
|
 |
Vitor |
Posted: Mon Oct 05, 2009 4:31 pm Post subject: Re: User-defined header |
|
|
 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 |
|
 |
PeterPotkay |
Posted: Mon Oct 05, 2009 4:50 pm Post subject: Re: User-defined header |
|
|
 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 |
|
 |
Vitor |
Posted: Mon Oct 05, 2009 4:53 pm Post subject: Re: User-defined header |
|
|
 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 |
|
 |
gbaddeley |
Posted: Mon Oct 05, 2009 5:06 pm Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Mon Oct 05, 2009 6:18 pm Post subject: |
|
|
 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 |
|
 |
PeterPotkay |
Posted: Mon Oct 05, 2009 6:33 pm Post subject: Re: User-defined header |
|
|
 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 |
|
 |
mqjeff |
Posted: Tue Oct 06, 2009 1:12 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
bruce2359 wrote: |
Yay for Message Properties! |
 |
|
Back to top |
|
 |
Vitor |
Posted: Tue Oct 06, 2009 7:21 am Post subject: Re: User-defined header |
|
|
 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 |
|
 |
bruce2359 |
Posted: Tue Oct 06, 2009 7:32 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Tue Oct 06, 2009 7:39 am Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Tue Oct 06, 2009 8:01 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Tue Oct 06, 2009 8:02 am Post subject: |
|
|
 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 |
|
 |
gbaddeley |
Posted: Tue Oct 06, 2009 4:57 pm Post subject: |
|
|
 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 |
|
 |
|