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 Java / JMS » How to read Values from MQRFH2 header fields

Post new topic  Reply to topic
 How to read Values from MQRFH2 header fields « View previous topic :: View next topic » 
Author Message
brajesh@777
PostPosted: Thu Apr 20, 2006 6:32 am    Post subject: How to read Values from MQRFH2 header fields Reply with quote

Newbie

Joined: 20 Apr 2006
Posts: 2

Hi All
I am setting some values into MQRFH2 header fields of MQMessage and sending using MQ API.
I am receiving the message using JMS and want to retrieve the MQRFH2 values. Can someone tell how to retrive MQRFH2 fields??
_________________
Thank You
Brajesh Kumar
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 20, 2006 7:03 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The MQRFH2 header is mapped into the JMSMessage object in a variety of ways, all of which are clearly spelled out in the JMS documentation in the Using Java manual.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
brajesh@777
PostPosted: Thu Apr 20, 2006 8:27 pm    Post subject: Reply with quote

Newbie

Joined: 20 Apr 2006
Posts: 2

Thank you for the reply.

But i could not find anywhere how to read, the values.
Can you provide me with some samples??
It would be of great help.
_________________
Thank You
Brajesh Kumar
Back to top
View user's profile Send private message
wschutz
PostPosted: Fri Apr 21, 2006 2:12 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

I think this explains it pretty clearly:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/csqzaw1481.htm
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
jefflowrey
PostPosted: Fri Apr 21, 2006 3:23 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

And if wschutz's answer still has your head spinning...

Well, you should read it a few more times because it will be important to know.

BUT.

You may find the answer more clearly stated here.
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/csqzaw1484.htm
_________________
I am *not* the model of the modern major general.


Last edited by jefflowrey on Fri Apr 21, 2006 7:43 am; edited 1 time in total
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Apr 21, 2006 7:41 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

And if you were curious enough to have a look at the javax.jms.Message API you would know how to get at the different properties of the specific message.
Hint:
Code:
Enumeration myenum = mymsg.getPropertyNames();


Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » How to read Values from MQRFH2 header fields
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.