MQ Stage message read in MQHRF2 format

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Amit Jaiswal
Premium Member
Premium Member
Posts: 38
Joined: Fri Apr 22, 2005 6:07 am

MQ Stage message read in MQHRF2 format

Post 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
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post 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.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post 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).
Post Reply