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 » ReplyTo in MQMD vs. Rto in RFH2

Post new topic  Reply to topic
 ReplyTo in MQMD vs. Rto in RFH2 « View previous topic :: View next topic » 
Author Message
oli
PostPosted: Wed Oct 10, 2012 3:16 am    Post subject: ReplyTo in MQMD vs. Rto in RFH2 Reply with quote

Acolyte

Joined: 14 Jul 2006
Posts: 68
Location: Germany

Hi all,

we have a very strange behavior in two different environments regarding the reply-to destination when using JMS.

We put a message into a queue with an MQMD and an RFH2 header. The reply-to information in MQMD and RFH2 is different (don't ask why), e.g.

In MQMD we have:
Code:

ReplyToQMgr=QMGR1
ReplyToQ=QUEUE1


In RFH2 we have:
Code:

<jms>
    ...
    <Rto>queue://QMGR2/QUEUE2</Rto>
    ....
</jms>


An MDB in Websphere Application Server (V6.1) gets the message from the queue an uses method
Code:
getJMSReplyTo()
to determine the reply-to destination.

The curious thing now is that on one environment the above mentioned method returns
Code:
queue://QMGR2/QUEUE2
whereas on the other environment the method returns
Code:
queue://QMGR1/QUEUE1


So in one case the reply-to information from the MQMD is used an in the other case from the RFH2 Header.

Any ideas what may lead to that behavior???

Thanks, Oli
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Oct 10, 2012 3:26 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I'd start by looking for differences between the rest of the MQMD and the rest of the RFH2 header.

Even something as basic as one is a text message and one is a bytes message might change this.

Then I'd look at the code that writes the messages, and confirm that it's the same code in both cases.

Then I'd look at the versions of the queue managers involved and the versions of the MQ libraries involved.
Back to top
View user's profile Send private message
oli
PostPosted: Wed Oct 10, 2012 3:32 am    Post subject: Reply with quote

Acolyte

Joined: 14 Jul 2006
Posts: 68
Location: Germany

We checked almost everything except the libraries. At the moment we are checking the library versions. At the moment I assume that the JMS implementation is different ...
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Oct 10, 2012 3:33 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

edit: sorry, lost track a second. coffee not kicking in yet...

So you send the exact same message in both environments and observe separate behavior?

And MQ is at the exact same version in both environments, at least the queue managers...

And the MDB hosting environment is at the exact same version? And the configuration of the QCF and mdb listeners and etc. is all the same?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Oct 10, 2012 2:02 pm    Post subject: Reply with quote

Grand High Poobah

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

I would look at the difference in the destination definition

For one definition the destination is set up as JMS and you get
queue://QM2/Queue2

On the other the destination is set up as MQ and you get
queue://QM1/Queue1

Identical code. Different JNDI
_________________
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 » ReplyTo in MQMD vs. Rto in RFH2
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.