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 can i use non-JMS fields in RFH2 header?

Post new topic  Reply to topic
 How can i use non-JMS fields in RFH2 header? « View previous topic :: View next topic » 
Author Message
Andrey
PostPosted: Fri Nov 09, 2001 2:28 am    Post subject: Reply with quote

Apprentice

Joined: 02 Sep 2001
Posts: 37
Location: Belarus, Minsk

Hi everyone
Can anybody explain me, it is possible to set any non-JMS fields in the message? I mean the following: If i use method Message.setStringProperty(name, value) JMS processor adds field with "name" name and "value" value into RFH2 header and inclose this field in "usr" tag. Is it possible to customize tag value? Say, I would like to insert in RFH2 header tag <pcs> instead of <usr>. How can i do it if it is possible?
Thanks
Back to top
View user's profile Send private message Send e-mail
kolban
PostPosted: Fri Nov 09, 2001 6:25 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

Using the setProperty() I believe all properties will be added to the folder of the MQRFH2. Remember, the MQRFH2 is an implementation side effect of JMS. If you are wanting to set different folders and values then I am presuming that the destination of the message is a non-JMS system. If this is the case, you can set the TARGCLIENT value to MQ and JMS will NOT generate ANY MQRFH2 folder itself. You can then add your own MQRFH2 header in your own application with any values you would like.
Back to top
View user's profile Send private message
Andrey
PostPosted: Mon Nov 12, 2001 1:08 am    Post subject: Reply with quote

Apprentice

Joined: 02 Sep 2001
Posts: 37
Location: Belarus, Minsk

Thanks, Neil
Just please clarify one thing. How and where can I set the TARGCLIENT value?
Back to top
View user's profile Send private message Send e-mail
kolban
PostPosted: Mon Nov 12, 2001 5:49 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

If using the JMSAdmin tool (or MQJExplorer) see

http://www-4.ibm.com/software/ts/mqseries/library/manual01/csqzaw07/csqzaw07tfrm.htm

From within an app, see

setTargetClient()
Back to top
View user's profile Send private message
Andrey
PostPosted: Tue Nov 13, 2001 1:41 am    Post subject: Reply with quote

Apprentice

Joined: 02 Sep 2001
Posts: 37
Location: Belarus, Minsk

Neil, I'm sorry for my stupid question again, but I could not find such method in API references. Can you point where exactly I can find this API?
Thanks
Back to top
View user's profile Send private message Send e-mail
kolban
PostPosted: Tue Nov 13, 2001 6:56 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

See the following Destination

The method is part of the Destination class which is inherited by Queue and Topic
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » How can i use non-JMS fields in RFH2 header?
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.