Red Hat Bugzilla – Bug 506739
createDurableSubscriber needs to throw InvalidDestinationException if a temp topic is used.
Last modified: 2009-07-14 13:32:34 EDT
Description of problem:
Currently if a temp topic is passed in to the createDurableSubscriber method, an exception is not thrown. As per the JMS spec we need to throw an InvalidDestinationException.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Topic t = session.createTemporaryTopic();
TopicSubscriber ts = createDurableSubscriber(t,"myTopic");
No Exception thrown
InvalidDestinationException should be thrown
Created attachment 348903 [details]
bug fix and test case
Fixed in qpid-java-0.5.751061-8
Created attachment 350276 [details]
Put into /usr/share/doc/rhm-0.5/java/org/apache/qpid/example/jmsexample/pubsub/
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.