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 » MQRFH2 - RFH2 Format

Post new topic  Reply to topic
 MQRFH2 - RFH2 Format « View previous topic :: View next topic » 
Author Message
wmquser
PostPosted: Fri Dec 19, 2008 9:48 am    Post subject: MQRFH2 - RFH2 Format Reply with quote

Apprentice

Joined: 20 Aug 2008
Posts: 32

Hi,
Could you please let us know what are the available formats for MQRFH2 Format (RFH2_FORMAT) . Is MQHRF2 is a valid for MQRFH2-Format (RFH2_FORMAT). I am getting an exception MQRC 2334 / 2142 when my application try to put the message into the queue with RFH2_FORMAT = MQHRF2.

Thanks in advance.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri Dec 19, 2008 9:59 am    Post subject: Re: MQRFH2 - RFH2 Format Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

wmquser wrote:
Hi,
Could you please let us know what are the available formats for MQRFH2 Format (RFH2_FORMAT) . Is MQHRF2 is a valid for MQRFH2-Format (RFH2_FORMAT). I am getting an exception MQRC 2334 / 2142 when my application try to put the message into the queue with RFH2_FORMAT = MQHRF2.


Code:
#define MQFMT_RF_HEADER_2        "MQHRF2  "


You cannot simply put RFH2 in the MQMD.Format and expect it to work.

RFH2 is a complex header structure that is made up of "n" sections. i.e. RFH header, mcd folder, jms folder, usr folder, plus many other types of folders.

If you are not writing Java/JMS code then you should use XMS. It will make your life far easier.


Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
wmquser
PostPosted: Sun Dec 21, 2008 10:48 pm    Post subject: Reply with quote

Apprentice

Joined: 20 Aug 2008
Posts: 32

Hi,
Below is the code to populate the RFH2 header.

StructID = "RFH "
Version = 2
StrucLength = 44
Encoding = 273
CodeCharSetID = 1208
Format="MQHRF2 "
Flag = MQRFH_NONE
NameValueCCSID = 1208
Usr NameValueLength = 4
Usr NameValueData = "Data"

When we try to put the message with the above RFH2 values, it throws an exception MQRC 2334 / MQ2142.
Could you please advise to fix this issue.

Thanks in advance
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 22, 2008 12:33 am    Post subject: Reply with quote

Grand High Poobah

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

wmquser wrote:
Could you please advise to fix this issue.


Yes - format the header correctly! There are documented rules about how this header must be laid out and your user data ignores all of them.

I repeat Roger's comment - use JMS or XMS to manipulate the header. No point reinventing the wheel, especially when your current wheel design appears to be square.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Dec 22, 2008 1:07 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

If you are using a non-JMS application at one end - it's preferable to use non-JMS messages.

These can be processed by JMS applications and the JMS header fields are automatically populated by MQ from the MQMD.

Refer to the "Using Java" IBM MQ manual.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Mon Dec 22, 2008 3:22 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

wmquser wrote:
Below is the code to populate the RFH2 header.

It is meaningless. It kind of looks like VB - why don't you post the complete VB. Secondly, where is the information about the folders? There are strict rules. Third, what is this Format="MQHRF2 " - it appears you are trying to put a RFH2 message within an RFH2 message. You CANNOT do this.

Why don't you use XMS for .NET?

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
wmquser
PostPosted: Tue Dec 23, 2008 2:03 am    Post subject: Reply with quote

Apprentice

Joined: 20 Aug 2008
Posts: 32

hi,
I am using IBM Transformation Extender. The code that I have pasted is a extract of from that.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Dec 23, 2008 3:43 am    Post subject: Reply with quote

Grand High Poobah

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

wmquser wrote:
I am using IBM Transformation Extender. The code that I have pasted is a extract of from that.


Then raise a PMR if that's a quote.
_________________
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 Discussion » MQRFH2 - RFH2 Format
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.