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 » WebSphere Message Broker (ACE) Support » how to set /MQRFH2/jms/Rto correctly in Java

Post new topic  Reply to topic
 how to set /MQRFH2/jms/Rto correctly in Java « View previous topic :: View next topic » 
Author Message
christian witschel
PostPosted: Sat Sep 15, 2007 12:45 am    Post subject: how to set /MQRFH2/jms/Rto correctly in Java Reply with quote

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
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Sat Sep 15, 2007 7:21 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
christian witschel
PostPosted: Sun Sep 16, 2007 4:40 am    Post subject: Reply with quote

Apprentice

Joined: 07 Dec 2005
Posts: 27

Thanks, I changed the title and my description accordingly.
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Sun Sep 16, 2007 10:00 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
christian witschel
PostPosted: Mon Sep 17, 2007 1:09 am    Post subject: Reply with quote

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
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 » WebSphere Message Broker (ACE) Support » how to set /MQRFH2/jms/Rto correctly in Java
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.