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 » IBM MQ API Support » Populating usr field of RFH2 header

Post new topic  Reply to topic
 Populating usr field of RFH2 header « View previous topic :: View next topic » 
Author Message
BBM
PostPosted: Tue Dec 22, 2009 9:00 pm    Post subject: Populating usr field of RFH2 header Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Dec 22, 2009 9:34 pm    Post subject: Re: Populating usr field of RFH2 header Reply with quote

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
View user's profile Send private message Send e-mail
zonko
PostPosted: Tue Dec 22, 2009 11:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
BBM
PostPosted: Wed Dec 23, 2009 2:32 pm    Post subject: Reply with quote

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
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 » IBM MQ API Support » Populating usr field of RFH2 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.