Defining non-exclusive and/or auto-delete queues in JMS API is not possible with addresses based on links ---------------------------------------------------------------------------------------------------------
Key: QPID-3494 URL: https://issues.apache.org/jira/browse/QPID-3494 Project: Qpid Issue Type: Bug Components: Java Client Affects Versions: 0.12 Environment: Windows XP, Java 1.6 Reporter: JAkub Scholz Priority: Minor Hi, The following address ... response/response_routing_key; { create: receiver, link: { name: 'response_queue', durable: false, x-declare: { auto-delete: false, exclusive: false, arguments : { 'qpid.max_count': 1000, 'qpid.max_size': 1000000, 'qpid.policy_type': ring } } } } ... should: 1) Create a non-durable queue named "response_queue", with qpid.max_count=1000, qpid.max_size=1000000, qpid.policy_type=ring. The queue should not be exclusive and should not be auto-delete 2) Bind the newly created queue to the exchange named "response" using the key "response_routing_key" It almost works, except the auto-delete and exclusive options being ignored. I was trying to find out why are they getting lost and it seems the values are properly loaded by the AddressHelper class, but later they are overwritten in AMQSession_0_10.java on line 1342 and 1342: 1342 node.setExclusive(true); 1343 node.setAutoDelete(!node.isDurable()); (http://svn.apache.org/viewvc/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java?view=markup) In Python and C++ it seems to work fine. Therefore it would be reasonable to fix it in Java as well. This issue was also discussed on the mailing list: http://apache-qpid-users.2158936.n2.nabble.com/Defining-non-exclusive-auto-delete-queues-in-JMS-API-td6800890.html Thanks & Regards Jakub -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:dev-subscr...@qpid.apache.org