Author |
Message
|
wmquser |
Posted: Fri Dec 19, 2008 9:48 am Post subject: MQRFH2 - RFH2 Format |
|
|
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 |
|
 |
RogerLacroix |
Posted: Fri Dec 19, 2008 9:59 am Post subject: Re: MQRFH2 - RFH2 Format |
|
|
 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 |
|
 |
wmquser |
Posted: Sun Dec 21, 2008 10:48 pm Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Mon Dec 22, 2008 12:33 am Post subject: |
|
|
 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 |
|
 |
zpat |
Posted: Mon Dec 22, 2008 1:07 am Post subject: |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Mon Dec 22, 2008 3:22 pm Post subject: |
|
|
 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 |
|
 |
wmquser |
Posted: Tue Dec 23, 2008 2:03 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Tue Dec 23, 2008 3:43 am Post subject: |
|
|
 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 |
|
 |
|