[jira] Created: (STOMP-12) Temporary Queues do not work with multiple connections to StompConnect

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (STOMP-12) Temporary Queues do not work with multiple connections to StompConnect

JIRA jira@codehaus.org
Temporary Queues do not work with multiple connections to StompConnect
----------------------------------------------------------------------

                 Key: STOMP-12
                 URL: http://jira.codehaus.org/browse/STOMP-12
             Project: Stomp
          Issue Type: Bug
         Environment: Fedora Core 9, Java 1.5
            Reporter: Tom Jenkinson
         Attachments: StompSession.patch

Hi,

It is indeed possible to subscribe and send messages using temporary queues, however this is only possible if the same connection that SUBscribed to the temporary queue (e.g. /temp-queue/tom) is also the one to send a message to it.

The reason for this is because the hashmap of temporary destinations is stored on the StompSession level so a second session does not locate the user defined name "tom" and therefore sends it to a brand new destination.

I have worked around this by changing StompSession convertDestination(String) so that when the StompSession receives a JMSReplyTo to a temporary destination it will store it in its temporaryDestination cache thereby ensuring that if the receiver then responds to the message, it can relocate the correct temporary destination.

Perhaps this (or similar fix) could be applied to stompconnect 1.0.1?

Thanks in advance,
Tom

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email