Bug 694617 - alternate-exchange (in x-declare part of address) does not work from JMS
Summary: alternate-exchange (in x-declare part of address) does not work from JMS
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-java
Version: Development
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: 2.0
: ---
Assignee: Rajith Attapattu
QA Contact: Petr Matousek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-07 19:06 UTC by Ted Ross
Modified: 2011-06-23 15:44 UTC (History)
4 users (show)

Fixed In Version: qpid-java-0.10-4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-23 15:44:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0890 0 normal SHIPPED_LIVE Red Hat Enterprise MRG Messaging 2.0 Release 2011-06-23 15:42:41 UTC

Description Ted Ross 2011-04-07 19:06:24 UTC
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.

Comment 1 Ted Ross 2011-04-11 12:31:45 UTC
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'}}}"

Comment 2 Ted Ross 2011-04-11 12:32:48 UTC
Fixed upstream (by Rajith) in commits 1090421 and 1090422.

Comment 5 Petr Matousek 2011-05-05 14:40:33 UTC
This issue has been fixed

Verified on RHEL5.6 and RHEL6.1, architectures: i386, x86_64

packages installed:
qpid-java-0.10-4

-> VERIFIED

Comment 6 errata-xmlrpc 2011-06-23 15:44:39 UTC
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


Note You need to log in before you can comment on or make changes to this bug.