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 IBM MQ Support » MQRFH2 Header Question

Post new topic  Reply to topic
 MQRFH2 Header Question « View previous topic :: View next topic » 
Author Message
Couple-IT
PostPosted: Fri Nov 03, 2006 4:07 am    Post subject: MQRFH2 Header Question Reply with quote

Novice

Joined: 06 Apr 2006
Posts: 11

hello,

My understanding is that :

The MQMD format will tell that a message includes MQRFH2.
The MQRFH2 is the first part of the message body.

Now my two questions.

1. Where in the MQMD is this told ?
2. Why is the first part of the message body used to store this in ?

I'm qurious to your answers...
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Nov 03, 2006 4:16 am    Post subject: Re: MQRFH2 Header Question Reply with quote

Grand High Poobah

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

Remco_QNH wrote:

The MQMD format will tell that a message includes MQRFH2.


It would seem you've answered your own first question.

Remco_QNH wrote:

The MQRFH2 is the first part of the message body.


Where else would you put a header?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Couple-IT
PostPosted: Fri Nov 03, 2006 4:27 am    Post subject: Reply with quote

Novice

Joined: 06 Apr 2006
Posts: 11

In my understanding headers are not normally stored in the messagebody, but in the MQMD. Because I've just seen a message using PQEdit. Where every header is displayed as usual and then a JMS header is added to the original message.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Nov 03, 2006 4:30 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The MQMD is a fixed length header, with a specific and exact set of fields.

There is no room in it for any other headers.

A "JMS" header is an MQRFH2 header, that has a specific folder named "jms" in it.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Couple-IT
PostPosted: Fri Nov 03, 2006 4:48 am    Post subject: Reply with quote

Novice

Joined: 06 Apr 2006
Posts: 11

Thanks Jeff....

So it all comes down to a matter of space/room. For some reason I allready had a feeling like that. I just couldn't believe it.

Do you also know what field in the MQMD is indicating RFH2 is used ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Nov 03, 2006 4:53 am    Post subject: Reply with quote

Grand High Poobah

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

Couple-IT wrote:

Do you also know what field in the MQMD is indicating RFH2 is used ?


You've already said it yourself - the format in the MQMD indicates the use or otherwise of an RFH2
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Nov 03, 2006 5:05 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The Format field of the MQMD indicates the format of the first section of the message body.

If the MQMD Format indicates that the first section of the message body is a header, then the Format field of the header indicates the format of the next section of the body.

You could have 100 MQRFH2 headers in a message if you wanted.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mlpet
PostPosted: Tue Nov 07, 2006 1:29 pm    Post subject: Reply with quote

Newbie

Joined: 07 Nov 2006
Posts: 1
Location: New York, NY

Couple-IT or anyone else involved - I am also forced to use VB (via Microsoft Access) to create my MQ message. I can generate and Put the message fine, but it requires the RFH2 header in order to translate properly. The problem is I can't find any VB/VBA sample code that does this properly. Do you have any leads? Thanks.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Nov 07, 2006 2:41 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You might want to use XMS for .NET.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 08, 2006 1:01 am    Post subject: Reply with quote

Grand High Poobah

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

If you don't want to go with XMS (which is the more future proof), there's some example code here:

http://muyunda.programmersheaven.com/download/26070/download.aspx

Standard disclaimer - I'd didn't write this code, my inclusion of this link is in no way an endorsement of the code, blah, blah, etc.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 IBM MQ Support » MQRFH2 Header Question
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.