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 » Adding headers to MQMessage

Post new topic  Reply to topic
 Adding headers to MQMessage « View previous topic :: View next topic » 
Author Message
skrlswamy
PostPosted: Tue Dec 30, 2003 1:00 pm    Post subject: Adding headers to MQMessage Reply with quote

Newbie

Joined: 30 Dec 2003
Posts: 4

I'm using IBM MQ using Java API to send the messages. But I need to add string name value pairs to the message header. As my request message is going to be a plain raw xml, some how I need to set the name value pairs in the MQMessage Headers. Is there any way to do this? Please suggest me.
_________________
cheers
Swamy S
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Dec 30, 2003 1:38 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Have you looked in the Application Programming Reference for all of the various headers that are available?

Have you looked in the Application Programming Guide for suggestions?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
skrlswamy
PostPosted: Tue Dec 30, 2003 1:43 pm    Post subject: Adding headers to MQMessage Reply with quote

Newbie

Joined: 30 Dec 2003
Posts: 4

I have gone through the entire API, I found something RFH2 header.
But I did not find any code snippet or description about how I can create and attach this header to my payload.

Thanks
_________________
cheers
Swamy S
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Dec 30, 2003 3:06 pm    Post subject: Re: Adding headers to MQMessage Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

skrlswamy wrote:
I have gone through the entire API, I found something RFH2 header.
But I did not find any code snippet or description about how I can create and attach this header to my payload.

Thanks


Well, if you use JMS instead of the standard Java API, JMS will usually attach an RFH2 header, and you can use setProperty (I believe) to populate additional name/value pairs.

I think that there has been sample code for building an RFH2 header with the standard Java API posted to the Java forum here within the last couple of months. If you try searching that, you might find it.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
skrlswamy
PostPosted: Wed Dec 31, 2003 4:03 pm    Post subject: Adding headers to MQMessage Reply with quote

Newbie

Joined: 30 Dec 2003
Posts: 4

Sorry... I was not able to find any sample code snippet on RFH2

_________________
cheers
Swamy S
Back to top
View user's profile Send private message
Michael Dag
PostPosted: Mon Jan 05, 2004 4:58 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

snippet: , but only you have to 'reverse' it...

http://www.mqseries.net/phpBB2/viewtopic.php?t=9911

Michael
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Adding headers to MQMessage
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.