And the error is :
java.lang.ClassCastException: com.ibm.jms.JMSTextMessage
Is this the correct way to specify that message contains MQRFH2 header ?
IBM's Using Java Documentation says this field would be mapped to MQMD of the message.
help me ...
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
If I understand what you are doing, the RFH2 header will get put on the TextMessage for you. You don't need to do anything special. WMQ will then put all of the JMS fields into the RFH2 header that it needs. You might want to look at mqjmsusr.java on:
thanks bowie for quick reply. i understood what you saying.
just another associated question,
if MQRFH2 is automatically imprinted on the message then why is that java call still needed. i'm still confused
how and when we have to use that method ?
The RFH2 header is not needed per se to do JMS.
However a number of additional products work better with you if you have it (ex broker ) etc ...
To specify an RFH2 header on your queue define your queue in JMSAdmin as being a "JMS" queue and not an "MQ" queue. The rest gets taken care of by IBM's java JMS implementation.
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