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 » HELP: Getting response of PREVIOUS request put in MQ.

Post new topic  Reply to topic
 HELP: Getting response of PREVIOUS request put in MQ. « View previous topic :: View next topic » 
Author Message
deepak_dhami
PostPosted: Thu Nov 12, 2009 3:08 am    Post subject: HELP: Getting response of PREVIOUS request put in MQ. Reply with quote

Newbie

Joined: 12 Nov 2009
Posts: 1

Hi there.

I'm using IBM Websphere MQ to put XML responses in a queue which I have configured
in WAS v6.1.0.17 (QueueConnectionFactory, Queue, Message Listener port, etc.).
That's all done successfully.

Next, I have a MessageDrivenBean class that's listening to what's being put into
that queue.

I'm also able to read every message that's being put.

The problem is that when I try to do "responseMessage = consumer.receive(5000)", it returns the response of the PREVIOUS request.

Do you have a clue??? Hoping you do...

Thanks.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Nov 12, 2009 7:19 am    Post subject: Re: HELP: Getting response of PREVIOUS request put in MQ. Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

deepak_dhami wrote:
Do you have a clue???


- You've failed to clear out the response queue between tests
- You have a code bug
- You have a code/design problem and you're not reading the response queue for the specific response to your request using the correl id

There are other possible explainations but those are my top 3.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Thu Nov 12, 2009 4:48 pm    Post subject: Re: HELP: Getting response of PREVIOUS request put in MQ. Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

Vitor wrote:
deepak_dhami wrote:
Do you have a clue???


- You've failed to clear out the response queue between tests
- You have a code bug
- You have a code/design problem and you're not reading the response queue for the specific response to your request using the correl id

There are other possible explainations but those are my top 3.


I'd vote for #3. It could also be related to syncpoint / commit.
_________________
Glenn
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » HELP: Getting response of PREVIOUS request put in MQ.
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.