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

[jira] Created: (QPID-66) AMQSession implementation of TopicSession and QueueSession interfaces not JMS compliant

AMQSession implementation of TopicSession and QueueSession interfaces not JMS compliant
---------------------------------------------------------------------------------------

                 Key: QPID-66
                 URL: http://issues.apache.org/jira/browse/QPID-66
             Project: Qpid
          Issue Type: Bug
          Components: Java Client
            Reporter: Marnie McCormack
         Assigned To: Marnie McCormack
             Fix For: M1


Currently AMQSession implements the jms Session, QueueSession and TopicSession interfaces. This is efficient, but unfortunately doesn't curerntly support the JMS spec requirements that some methods inherited by a QueueSession or TopicSession instance from Session should throw IllegalStateException when called.

i.e. JMS javadocs state:

A TopicSession cannot be used to create objects specific to the point-to-point domain. The following methods inherit from Session, but must throw an IllegalStateException if used from TopicSession: 

createBrowser 
createQueue 
createTemporaryQueue 

A QueueSession cannot be used to create objects specific to the publish/subscribe domain. The following methods inherit from Session, but must throw an IllegalStateException if they are used from QueueSession: 

createDurableSubscriber 
createTemporaryTopic 
createTopic 
unsubscribe 

When the AMQConnection createTopicSession and createQueueSession methods are called they return an instance of AMQSession cast to the appropriate interface.

Need to resolve this such that the prescribed methods on TopicSession and QueueSession behave as specified.

-- 
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-66) AMQSession implementation of TopicSession and QueueSession interfaces not JMS compliant

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

Marnie McCormack updated QPID-66:
---------------------------------


Added skeleton test classes for AMQConnection and AMQSession to exercise methods affected by changes. Resolved JIRA.

> AMQSession implementation of TopicSession and QueueSession interfaces not JMS compliant
> ---------------------------------------------------------------------------------------
>
>                 Key: QPID-66
>                 URL: http://issues.apache.org/jira/browse/QPID-66
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>            Reporter: Marnie McCormack
>         Assigned To: Marnie McCormack
>             Fix For: M1
>
>
> Currently AMQSession implements the jms Session, QueueSession and TopicSession interfaces. This is efficient, but unfortunately doesn't curerntly support the JMS spec requirements that some methods inherited by a QueueSession or TopicSession instance from Session should throw IllegalStateException when called.
> i.e. JMS javadocs state:
> A TopicSession cannot be used to create objects specific to the point-to-point domain. The following methods inherit from Session, but must throw an IllegalStateException if used from TopicSession: 
> createBrowser 
> createQueue 
> createTemporaryQueue 
> A QueueSession cannot be used to create objects specific to the publish/subscribe domain. The following methods inherit from Session, but must throw an IllegalStateException if they are used from QueueSession: 
> createDurableSubscriber 
> createTemporaryTopic 
> createTopic 
> unsubscribe 
> When the AMQConnection createTopicSession and createQueueSession methods are called they return an instance of AMQSession cast to the appropriate interface.
> Need to resolve this such that the prescribed methods on TopicSession and QueueSession behave as specified.

-- 
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-66) AMQSession implementation of TopicSession and QueueSession interfaces not JMS compliant

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

Marnie McCormack updated QPID-66:
---------------------------------


Have added AMQTopicSessionAdaptor and AMQQueueSessionAdaptor now returned by createXX methods on AMQConnection and correctly implemented the methods to throw IllegalStateException.

Adding tests now.

> AMQSession implementation of TopicSession and QueueSession interfaces not JMS compliant
> ---------------------------------------------------------------------------------------
>
>                 Key: QPID-66
>                 URL: http://issues.apache.org/jira/browse/QPID-66
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>            Reporter: Marnie McCormack
>         Assigned To: Marnie McCormack
>             Fix For: M1
>
>
> Currently AMQSession implements the jms Session, QueueSession and TopicSession interfaces. This is efficient, but unfortunately doesn't curerntly support the JMS spec requirements that some methods inherited by a QueueSession or TopicSession instance from Session should throw IllegalStateException when called.
> i.e. JMS javadocs state:
> A TopicSession cannot be used to create objects specific to the point-to-point domain. The following methods inherit from Session, but must throw an IllegalStateException if used from TopicSession: 
> createBrowser 
> createQueue 
> createTemporaryQueue 
> A QueueSession cannot be used to create objects specific to the publish/subscribe domain. The following methods inherit from Session, but must throw an IllegalStateException if they are used from QueueSession: 
> createDurableSubscriber 
> createTemporaryTopic 
> createTopic 
> unsubscribe 
> When the AMQConnection createTopicSession and createQueueSession methods are called they return an instance of AMQSession cast to the appropriate interface.
> Need to resolve this such that the prescribed methods on TopicSession and QueueSession behave as specified.

-- 
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] Resolved: (QPID-66) AMQSession implementation of TopicSession and QueueSession interfaces not JMS compliant

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

Marnie McCormack resolved QPID-66.
----------------------------------

    Resolution: Fixed

Added QueueSession and TopicSession adaptor classes and tests to resolve this issue.

> AMQSession implementation of TopicSession and QueueSession interfaces not JMS compliant
> ---------------------------------------------------------------------------------------
>
>                 Key: QPID-66
>                 URL: http://issues.apache.org/jira/browse/QPID-66
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>            Reporter: Marnie McCormack
>         Assigned To: Marnie McCormack
>             Fix For: M1
>
>
> Currently AMQSession implements the jms Session, QueueSession and TopicSession interfaces. This is efficient, but unfortunately doesn't curerntly support the JMS spec requirements that some methods inherited by a QueueSession or TopicSession instance from Session should throw IllegalStateException when called.
> i.e. JMS javadocs state:
> A TopicSession cannot be used to create objects specific to the point-to-point domain. The following methods inherit from Session, but must throw an IllegalStateException if used from TopicSession: 
> createBrowser 
> createQueue 
> createTemporaryQueue 
> A QueueSession cannot be used to create objects specific to the publish/subscribe domain. The following methods inherit from Session, but must throw an IllegalStateException if they are used from QueueSession: 
> createDurableSubscriber 
> createTemporaryTopic 
> createTopic 
> unsubscribe 
> When the AMQConnection createTopicSession and createQueueSession methods are called they return an instance of AMQSession cast to the appropriate interface.
> Need to resolve this such that the prescribed methods on TopicSession and QueueSession behave as specified.

-- 
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