Posted: Wed Jun 06, 2007 12:04 am Post subject: JMS redudant information in MQ message
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
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 ?
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.
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