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 » Copying the RFH2 of incoming msg to outgoing msg in JMS

Post new topic  Reply to topic
 Copying the RFH2 of incoming msg to outgoing msg in JMS « View previous topic :: View next topic » 
Author Message
jainsk
PostPosted: Mon Jun 20, 2005 11:07 am    Post subject: Copying the RFH2 of incoming msg to outgoing msg in JMS Reply with quote

Novice

Joined: 15 Jun 2004
Posts: 13

Hi,

here is the scenario, i have to get a mesage from MQ Queue using MQJMS which will have the RFH2 header and data in usr folder. Now i have to copy the same usr folder in the outgoing message after i modified the actual message body. can anybody help me how to copy the usr folder to the outgoing message.
Environment AIX 5.2, MQ 5.3 CSD 04

Thanks in advance,..
Back to top
View user's profile Send private message
EddieA
PostPosted: Mon Jun 20, 2005 12:58 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

How about GETting the Properties from the input message and SETting the Properties on the output.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
jainsk
PostPosted: Tue Jun 21, 2005 5:25 am    Post subject: Reply with quote

Novice

Joined: 15 Jun 2004
Posts: 13

EddieA,

could you please provide me the sample code.


Thanks
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Jun 21, 2005 5:36 am    Post subject: Reply with quote

Jedi Knight

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

Take a look at mqjmsusr.java at:

http://www.developer.ibm.com/isv/tech/sampmq.html

It sets the properties. You can use the get methods to get them.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
jainsk
PostPosted: Tue Jun 21, 2005 6:07 am    Post subject: Reply with quote

Novice

Joined: 15 Jun 2004
Posts: 13

Thanks guys. it is working now
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 » Copying the RFH2 of incoming msg to outgoing msg in JMS
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.