[ 
https://issues.apache.org/jira/browse/ARTEMIS-2189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Bertram updated ARTEMIS-2189:
------------------------------------
    Description: If a client closes its JMS session (intentionally or not) and 
then invokes {{javax.jms.TemporaryQueue.delete()}} or 
{{javax.jms.TemporaryTopic.delete()}} these methods will return without 
actually deleting the destination (because the underlying session was closed).  
The JMS spec states that the lifetime of a temporary destination is tied to the 
connection rather than the session so even after the session is closed it 
should still be possible to delete the temporary destination.  (was: If a 
client closes its JMS session (intentionally or not) and then invokes 
{{javax.jms.TemporaryQueue.delete()}} or {{javax.jms.TemporaryTopic.delete()}} 
these methods will return without actually deleting the destination (because 
the underlying session was closed). This can be confusing and/or mask 
programming errors.

The [JavaDoc for 
{{javax.jms.TemporaryQueue}}|https://docs.oracle.com/javaee/7/api/javax/jms/TemporaryQueue.html#delete--]
 states that a {{JMSException}} should be thrown, "if the JMS provider fails to 
delete the temporary queue due to some internal error.")

> Allow deleting temporary destination when originating session is closed
> -----------------------------------------------------------------------
>
>                 Key: ARTEMIS-2189
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2189
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.6.3
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>
> If a client closes its JMS session (intentionally or not) and then invokes 
> {{javax.jms.TemporaryQueue.delete()}} or 
> {{javax.jms.TemporaryTopic.delete()}} these methods will return without 
> actually deleting the destination (because the underlying session was 
> closed).  The JMS spec states that the lifetime of a temporary destination is 
> tied to the connection rather than the session so even after the session is 
> closed it should still be possible to delete the temporary destination.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to