ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Parsing out MQRFH2 using Java API's for MQSeries

Post new topic  Reply to topic
 Parsing out MQRFH2 using Java API's for MQSeries « View previous topic :: View next topic » 
Author Message
kairaja
PostPosted: Thu May 22, 2003 8:02 am    Post subject: Parsing out MQRFH2 using Java API's for MQSeries Reply with quote

Novice

Joined: 08 Feb 2002
Posts: 13

Hello

Sorry for cross posting. But i need help badly.

I have a JMS application dropping a message into MQSeries Queue.
The data from MQSeries Queue is read by a Java program written using Java Base Classes for MQ. The problem is that JMS application is appending MQRFH2 to the data and also the message header have format typeas MQRFH2. My Java program is reading a message from the Queue by setting Format as MQFMT_STRING. How can i have my Java application (which is using MQ Base classes for Java) to ignore the MQRFH2 header info and read the real payload. Any code samples would greatly help.

I do realize that JMS application can setTargetClient for NonJMS clients.But at this point, i can't have that done due to some internal issues.

So i kindly request any help that someone can provide in regards to
How can a Java Application written using Java Base classes for MQ can read a message dropped by JMS Application.
Thanks in advance
Back to top
View user's profile Send private message
bower5932
PostPosted: Fri May 23, 2003 7:44 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

You could always use some of the methods in the MQMessage class to read over the fields that you aren't interested in. I believe that the RFH keeps its length at the front (eye catcher, version, length?). Once you get the length, you could skip the rest of the RFH.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Parsing out MQRFH2 using Java API's for MQSeries
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.