[jboss-jira] [JBoss JIRA] Updated: (JBMESSAGING-1566) Temporary Destinations should not allow their consumers to be created on other connections than their own as per JMS spec

Clebert Suconic (JIRA) jira-events at lists.jboss.org
Fri Jul 24 11:38:35 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBMESSAGING-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clebert Suconic updated JBMESSAGING-1566:
-----------------------------------------

    Fix Version/s: 2.0.0
                       (was: 2.0.0.beta4)


> Temporary Destinations should not allow their consumers to be created on other connections than their own as per JMS spec
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBMESSAGING-1566
>                 URL: https://jira.jboss.org/jira/browse/JBMESSAGING-1566
>             Project: JBoss Messaging
>          Issue Type: Bug
>          Components: JMS Facade
>    Affects Versions: 2.0.0 Beta1
>            Reporter: Howard Gao
>            Assignee: Tim Fox
>             Fix For: 2.0.0
>
>
> JMS 1.1 spec Section 4.4.3 2nd paragraph:
> Temporary destinations (TemporaryQueue or TemporaryTopic objects) are
> destinations that are system-generated uniquely for their connection. Only
> their own connection is allowed to create MessageConsumers for them.
> So the following test should fail, but currently it passes.
>    public void testTemporaryQueueScope()
>    {
>       try
>       {
>          senderConnection.stop();
>          receiverConnection.stop();
>          tempQueue = receiverSession.createTemporaryQueue();
>          //create consumer on different connection, should fail!
>          senderSession.createConsumer(tempQueue);
>       }
>       catch (JMSException e)
>       {
>          fail(e);
>       }
>    }
> The same issue exists with temporary topics too.

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

        



More information about the jboss-jira mailing list