Page 1 of 1

MQ Stage message read in MQHRF2 format

Posted: Fri May 18, 2007 12:38 am
by Amit Jaiswal
Hi All,

I am using MQ Stage plugin to read XML messages. I am able to read MQSTR format message but not MQHRF2 message. For MQHRF2 message its giving "Fatal: The WebSphere MQ plug-in is unable to process non-string formatted messages" error. Whenever, messages are added through JMS adapter it is getting added with MQHRF2 format. Is there any way to add message from Java in MQSTR format?

Thanks in advance
-Amit

Posted: Fri May 18, 2007 4:47 am
by JoshGeorge
This is a JMS/Java related query. JMS sends the messages with an MQHRF2 header in the front. You can configure it on the MQ server side via jmsadmin or use casting on jms queue.

Posted: Fri May 18, 2007 10:06 am
by eostic
...I haven't tried to configure it, but I suppose you could also consider using the JavaPack instead and your own JMS client class inside of it...and then read the messages via JMS API. I'd be a bit concerned about any requirements that MQ might have on stand-alone Java clients, because changing the JVM for JavaPack is not particularly easy. But if a stand-alone java client works fine against these queues (assuming that all the MQ-to-JMS pre-reqs are in place), then you should be able to make it work inside of JavaPack (and not use the MQ Stage).