]
Andy Taylor reassigned JBMESSAGING-1559:
----------------------------------------
Assignee: Andy Taylor (was: Tim Fox)
Temporary Queues are not deleted when the connection used to create
them is closed
----------------------------------------------------------------------------------
Key: JBMESSAGING-1559
URL:
https://jira.jboss.org/jira/browse/JBMESSAGING-1559
Project: JBoss Messaging
Issue Type: Bug
Reporter: Jeff Mesnil
Assignee: Andy Taylor
Fix For: 2.0.0 Beta
A temporary queue must be deleted when the connection used to create it is closed.
The code to do that is added in ServerSessionImpl.doHandleCreateQueue by adding a
FailureListener which should be executed when the remoting connection is closed.
But that is not the case: if the remoting connection is closed properly, the
connectionDestroyed event will be triggered in RemotingServiceImpl which calls
RemotingConnectionImpl.destroy() and does *not* notify the FailureListener.
I've added tests to show that in TemporaryQueueTest: the temp queue is deleted if the
client crashes but not if the client closes its connection properly.
If the temp queue has not been explicitely deleted by the user, it will remain on the
system even after the connection is closed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: