|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
how to set /MQRFH2/jms/Rto correctly in Java |
« View previous topic :: View next topic » |
Author |
Message
|
christian witschel |
Posted: Sat Sep 15, 2007 12:45 am Post subject: how to set /MQRFH2/jms/Rto correctly in Java |
|
|
Apprentice
Joined: 07 Dec 2005 Posts: 27
|
Hi,
I want to set a replytoqueue for a receiving adapter.
So I do:
refOutput.getFirstElementByPath("/MQRFH2/jms").createElementAsLastChild(MbElement.TYPE_NAME_VALUE, "Rto", "queue:///replyqueue.in");
when I then check the message after the flow is finished, I see that it created Rto as an attribute of jms.
<jms Rto="queue:///replyqueue.in" >
<Dst>some queue</Dst>
</jms>
However the JText Adapter does not accept this
<jms>
<Dst>some queue</Dst>
<Rto>queue:///replyqueue.in</Rto>
</jms>
any idea how to fix this?
thanks for the help.
Last edited by christian witschel on Sun Sep 16, 2007 4:38 am; edited 1 time in total |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Sep 15, 2007 7:21 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Your subject is very misleading. You are really dealing here with the RFH header and a number of things are different in the RFH header from what they would be in the payload tree...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
christian witschel |
Posted: Sun Sep 16, 2007 4:40 am Post subject: |
|
|
Apprentice
Joined: 07 Dec 2005 Posts: 27
|
Thanks, I changed the title and my description accordingly. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Sep 16, 2007 10:00 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
I am not sure that you should use last child
Quote: |
refOutput.getFirstElementByPath("/MQRFH2/jms").createElementAsLastChild(MbElement.TYPE_NAME_VALUE, "Rto", "queue:///replyqueue.in"); |
Can you show what the tree looks like from a trace node?
Best guess create a message with RFH using ih03 (RFHUTIL) and show the tree. Than make sure your tree looks the same...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
christian witschel |
Posted: Mon Sep 17, 2007 1:09 am Post subject: |
|
|
Apprentice
Joined: 07 Dec 2005 Posts: 27
|
Hi,
i found the solution:
refOutput.getFirstElementByPath("/MQRFH2/jms").createElementAsLastChild(MbElement.TYPE_NAME, "Rto", "some queue");
it has to be type MbElement.TYPE_NAME
do not ask me why, as the doc states something different for TYPE_NAME.
But it works now.
From experience: All createElement* do the same, it is just that the element is placed different. Before or after the calling element, or on the other side of the moon  |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|