The observed behavior is the following:
1. The producer creates a temporary queue.
2. Creates a consumer for the temporary queue.
3. Posts the message on the "RequestQueue" (With JMSReplyTo set to the temporary queue).
4. Waits for the response on the temporary queue by calling consumer.receive().
The Consumer on the other end:
1. listens to the "RequestQueue"
2. Extracts the JMSReplyTo destination
3. Posts a reply to the destination (the temporary queue).
From what I can see in the logs, the Consumer has already posted a message to the temporaryQueue. But the Producer does not receive this and is still waiting for the message.
I looked at the temporary queue attributes in the MBeans via JConsole.
The temporary queue has a consumer registered to it. But the "message count" and "delivered count" are 0.
I am thinking the message posted to the temporary queue is somehow lost.
Any inputs/thoughts on this problem?
Please post a short test program that demonstrates the issue and someone will take a look.
I have the test programs to reproduce the issue. But I have them as 4 java class files. It would be cumbersome to post it within the code blocks here.
Is there a way I can attach these files? Else, I can post the code as separate replies to this thread.
You can create a JIRA and attach it to that