You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rob Godfrey (JIRA)" <qp...@incubator.apache.org> on 2006/12/16 14:34:20 UTC

[jira] Created: (QPID-203) Implement delete() on TempraryQueue

Implement delete() on TempraryQueue
-----------------------------------

                 Key: QPID-203
                 URL: http://issues.apache.org/jira/browse/QPID-203
             Project: Qpid
          Issue Type: Bug
          Components: Java Client, JMS Compliance
            Reporter: Rob Godfrey
            Priority: Minor


delete() currently throws UnsupportedOperationException

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

        

[jira] Assigned: (QPID-203) Implement delete() on TempraryQueue

Posted by "Rob Godfrey (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Godfrey reassigned QPID-203:
--------------------------------

    Assignee: Rob Godfrey

> Implement delete() on TempraryQueue
> -----------------------------------
>
>                 Key: QPID-203
>                 URL: https://issues.apache.org/jira/browse/QPID-203
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client, JMS Compliance
>            Reporter: Rob Godfrey
>         Assigned To: Rob Godfrey
>            Priority: Minor
>             Fix For: M2
>
>         Attachments: QPID-203.patch
>
>
> delete() currently throws UnsupportedOperationException

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (QPID-203) Implement delete() on TempraryQueue

Posted by "Robert Greig (JIRA)" <qp...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/QPID-203?page=all ]

Robert Greig resolved QPID-203.
-------------------------------

    Fix Version/s: M2
       Resolution: Fixed

Patch applied rev 487801

> Implement delete() on TempraryQueue
> -----------------------------------
>
>                 Key: QPID-203
>                 URL: http://issues.apache.org/jira/browse/QPID-203
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client, JMS Compliance
>            Reporter: Rob Godfrey
>            Priority: Minor
>             Fix For: M2
>
>         Attachments: QPID-203.patch
>
>
> delete() currently throws UnsupportedOperationException

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

        

[jira] Updated: (QPID-203) Implement delete() on TempraryQueue

Posted by "Rob Godfrey (JIRA)" <qp...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/QPID-203?page=all ]

Rob Godfrey updated QPID-203:
-----------------------------

    Attachment: QPID-203.patch

Added a map from destination to count of consumers in the session as you are not allowed to call delete while there are any active (non-closed) consumers.
TempraryQueue.delete() checks if there are consumers, and if not, checks if the queue is bound - if it is it deletes it.

Unit test added 

> Implement delete() on TempraryQueue
> -----------------------------------
>
>                 Key: QPID-203
>                 URL: http://issues.apache.org/jira/browse/QPID-203
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client, JMS Compliance
>            Reporter: Rob Godfrey
>            Priority: Minor
>         Attachments: QPID-203.patch
>
>
> delete() currently throws UnsupportedOperationException

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

        

[jira] Commented: (QPID-203) Implement delete() on TempraryQueue

Posted by "Rajith Attapattu (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474599 ] 

Rajith Attapattu commented on QPID-203:
---------------------------------------

Rob,

I f I am not mistaken this was implemented before. (check the patch).
But now when I look at the code, the queue is not deleted, instead left to be deleted by the broker (bcos it's auto-delete)

You had the following code segment in the patch, maybe u should add that. 
+ if(_session.isQueueBound(getQueueName()))
+        {
+            _session.deleteQueue(getQueueName());
+        }

Regards,

Rajith

> Implement delete() on TempraryQueue
> -----------------------------------
>
>                 Key: QPID-203
>                 URL: https://issues.apache.org/jira/browse/QPID-203
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client, JMS Compliance
>            Reporter: Rob Godfrey
>         Assigned To: Rob Godfrey
>            Priority: Minor
>             Fix For: M2
>
>         Attachments: QPID-203.patch
>
>
> delete() currently throws UnsupportedOperationException

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.