Description of problem: If the alternate-exchange option is specified in queue or exchange creation via JMS, the alternate exchange is ignored. Version-Release number of selected component (if applicable): qpid-java-0.10-2 How reproducible: 100% Steps to Reproduce: 1. Start a broker 2. Run the Java spout example: ./runSample.sh org.apache.qpid.example.Spout "test-queue;{create:always,node:{type:queue,x-declare:{alternate-exchange:amq.fanout}}}" ./runSample.sh org.apache.qpid.example.Spout "test-exchange;{create:always,node:{type:topic,x-declare:{alternate-exchange:amq.fanout}}}" 3. Use qpid-config to examine the results: qpid-config queues qpid-config exchanges Actual results: The newly created objects (test-queue and test-exchange) should have alternate exchanges listed. They do not. Expected results: Listed alternate exchanges. Note that doing the same experiment with the C++ spout example yields the expected results.
Minor correction on reproducer... The alternate exchange name needs to be quoted: ./runSample.sh org.apache.qpid.example.Spout "test-queue;{create:always,node:{type:queue,x-declare:{alternate-exchange:'amq.fanout'}}}" ./runSample.sh org.apache.qpid.example.Spout "test-exchange;{create:always,node:{type:topic,x-declare:{alternate-exchange:'amq.fanout'}}}"
Fixed upstream (by Rajith) in commits 1090421 and 1090422.
The commits have been ported to the mrg_2.0.x branch. http://mrg1.lab.bos.redhat.com/cgit/qpid.git/commit/?h=mrg_2.0.x&id=c4ad52512614d346581f674abea500a19ee0c4f0 http://mrg1.lab.bos.redhat.com/cgit/qpid.git/commit/?h=mrg_2.0.x&id=e9bdc58cf9da266b1e20b2d204b70de95f774b29
This issue has been fixed Verified on RHEL5.6 and RHEL6.1, architectures: i386, x86_64 packages installed: qpid-java-0.10-4 -> VERIFIED
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. http://rhn.redhat.com/errata/RHEA-2011-0890.html