[ 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