|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Populating usr field of RFH2 header |
« View previous topic :: View next topic » |
Author |
Message
|
BBM |
Posted: Tue Dec 22, 2009 9:00 pm Post subject: Populating usr field of RFH2 header |
|
|
Master
Joined: 10 Nov 2005 Posts: 217 Location: London, UK
|
Hi everyone,
Does anyone happen to know the size limits of the usr field of the RFH2 header? I couldn't find this information in the manual.
We are attempting to transport some application metadata with the message but do not want to touch the message body, and I think this field is the best candidate for this purpose.
Many thanks as always,
BBM |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Dec 22, 2009 9:34 pm Post subject: Re: Populating usr field of RFH2 header |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
BBM wrote: |
Hi everyone,
Does anyone happen to know the size limits of the usr field of the RFH2 header? I couldn't find this information in the manual.
We are attempting to transport some application metadata with the message but do not want to touch the message body, and I think this field is the best candidate for this purpose.
Many thanks as always,
BBM |
This is for a good reason. As defined the RFH header is essentially of variable length with an alignment (mod 4). You have to specify the length of the header in one of the first header fields. AFAIK the broker will take care of this for you in the RFH parser...
For practical reasons the header is stored with the payload. So if you are sending the message to a non JMS application you might want to consider an aggregation pattern, in order to keep the RFH "safe". Please also remember that only a select number of CCSIDs are allowed for the information stored in the usr folder. Make sure to check that the one you're planning on using is allowed.
As for the total length, I would expect that it will need to fit the max length of the MQ Message (i.e. MQMD + any linked headers + payload)
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
zonko |
Posted: Tue Dec 22, 2009 11:02 pm Post subject: |
|
|
Voyager
Joined: 04 Nov 2009 Posts: 78
|
The OP did not mention broker...
At WMQv7, the best way to attach additional data to a msg is to use the msg properties API MQSETMP/MQINQMP. I do know that the max size of msg properties is 100Mb. |
|
Back to top |
|
 |
BBM |
Posted: Wed Dec 23, 2009 2:32 pm Post subject: |
|
|
Master
Joined: 10 Nov 2005 Posts: 217 Location: London, UK
|
Thanks for the replies. We are using MQ 6.02.4 so unfortunately cannot take advantage of the properties field and are only interested in the RFH2 header for it's app data storage capability. i.e. we are not using broker.
Merry Christmas!
BBM |
|
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
|
|
|
|