[ https://issues.apache.org/jira/browse/QPID-5742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Godfrey closed QPID-5742. ----------------------------- Resolution: Fixed > MessageConsumerImpl construction error when SessionImpl.createConsumer > ---------------------------------------------------------------------- > > Key: QPID-5742 > URL: https://issues.apache.org/jira/browse/QPID-5742 > Project: Qpid > Issue Type: Bug > Environment: Windows 7 x64 > Windows Azure Service Bus > javax.jms-api-2.0 > qpid-amqp-1-0-client-0.26 > qpid-amqp-1-0-client-jms-0.26 > qpid-amqp-1-0-common-0.26 > Reporter: Ethan C.-F. Chen > > The definition is below > {code} > topic.atmosphere=atmosphere > {code} > but when create MessageConsumerImpl, in line #99-#109 > the _isQueueConsumer will always true. > Client code: > {code} > Context context = new InitialContext(getJmsEnvironment()); > ConnectionFactory connectionFactory = > (ConnectionFactory) context.lookup("azureServiceBusConnectionFactory"); > Topic topic = (Topic) context.lookup("atmosphere"); > Connection connection = connectionFactory.createConnection(); > Session publisherSession = connection.createSession( > false, Session.AUTO_ACKNOWLEDGE); > Session consumerSession = connection.createSession( > false, Session.AUTO_ACKNOWLEDGE); > MessageProducer publisher = > publisherSession.createProducer(topic); > MessageConsumer consumer = > consumerSession.createConsumer(topic); > {code} > I guest it was cause by the DestinationImpl, > because the class declaration is > {code} > DestinationImpl implements Destination, Queue, Topic > {code} > so in the constructor of MessageConsumerImpl > {code} > if(destination instanceof javax.jms.Queue) > {code} > will always gets true -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org