Reading MQRHF2 Header from MQ message.

Hi

I am getting MQ messages from an application using IBM Message Broker.

My requirement is to read the MQRFH2 Header from MQ message.

I didnt find any class in com.ibm.mq.jar file. I found the functionality in JMS but I am not supposed to use it.

How can I read header from MQ message?

Can someone please help me in overcoming this problem.

Thanks in advance.

[404 byte] By [Gopikrishnaa] at [2007-10-3 3:11:24]
# 1
I don't think that Java classes are available for MQRHF2. You might have to write your own.See page 261-onward. http://publibfp.boulder.ibm.com/epubs/pdf/csqzaw12.pdf
filestreama at 2007-7-14 21:02:15 > top of Java-index,Java Essentials,Java Programming...
# 2

Ya I have already gone through that but my problem is I am not supposed to use JMS Message.

I must use MQ Message that is coming from IBM Message Broker.

But MQMessage class doesnt contain any method to get or set MQRFH2 header. There are methods to get MQMD headers.

Can you please suggest me the approach which I should follow.

Thanks and regards,

Gopikrishnaa at 2007-7-14 21:02:15 > top of Java-index,Java Essentials,Java Programming...
# 3
Create a JavaComputeNode that you can use to examine the message. http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac20805_.htm
filestreama at 2007-7-14 21:02:15 > top of Java-index,Java Essentials,Java Programming...