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 » JMS redudant information in MQ message

Post new topic  Reply to topic
 JMS redudant information in MQ message « View previous topic :: View next topic » 
Author Message
MQ123
PostPosted: Wed Jun 06, 2007 12:04 am    Post subject: JMS redudant information in MQ message Reply with quote

Novice

Joined: 05 Jun 2007
Posts: 11

Hey,

1. When I use a JMS program to write a message to a queue using something like
outMessage.setJMSReplyTo(session.createQueue("TEST.OUTPUT"));
outMessage.setText(data);
queueSender.send(outMessage);
I see using rfhtutil that for example the replytoqueue(TEST.OUTPUT) will appear at two locations:
a) inside the MQ Header and
b) inside the jms part of the RFH structure:
<jms><Dst>queue:///TEST.INPUT</Dst><Rto>queue:///TEST.OUTPUT</Rto><Tms>1181113725714</Tms><Dlv>2</Dlv></jms>

2. I want to write a MQ Series program where I want to build all the RFH structure by my own like

mqMessageOut.writeString(MQC.MQRFH_STRUC_ID); // StrucId
mqMessageOut.writeInt4(MQC.MQRFH_VERSION_2); // Version
mqMessageOut.writeInt4(MQC.MQRFH_STRUC_LENGTH_FIXED_2 + mcd_len + jms_len + usr_len + 12); // StrucLength

(some eamples are given here in other threads).

3. My question:
Do I have to set up also the part of the jms RFH structure in the same way as mentioned before <jms><Dst>queue:///TEST.INPUT</Dst><Rto>queue:///TEST.OUTPUT</Rto><Tms>1181113725714</Tms><Dlv>2</Dlv></jms>

or is it just enough to set the
msg.replyToQueueName;
?


The receiving program is another Java JMS application. Will this receiving program get tge repyltoqueue from the RFH jms part or from the MQ Header part. What will happen, if I use a different replytoqueue name in the the MQ Header and in the jms RFH structure ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jun 06, 2007 2:58 am    Post subject: Reply with quote

Grand High Poobah

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

If there is no additional information (like stuff in the user folder of the RFH) there is no need to create the RFH for the JMS application. It can read a message whether it carries an RFH header or not.

Don't go an reinvent the wheel. If your sending program is java and you need an RFH use JMS. If your sending program is not java look into the XMS support pack.

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 » JMS redudant information in MQ message
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.