|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
HELP: Getting response of PREVIOUS request put in MQ. |
« View previous topic :: View next topic » |
Author |
Message
|
deepak_dhami |
Posted: Thu Nov 12, 2009 3:08 am Post subject: HELP: Getting response of PREVIOUS request put in MQ. |
|
|
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 |
|
 |
Vitor |
Posted: Thu Nov 12, 2009 7:19 am Post subject: Re: HELP: Getting response of PREVIOUS request put in MQ. |
|
|
 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 |
|
 |
gbaddeley |
Posted: Thu Nov 12, 2009 4:48 pm Post subject: Re: HELP: Getting response of PREVIOUS request put in MQ. |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|