[ 
https://issues.apache.org/jira/browse/QPID-3377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Moravec updated QPID-3377:
--------------------------------

    Attachment: qpid-java-0.10.JIRA3377.patch

Patch proposal. Reasoning of the change:

routing key was wrongly changed from (already properly set) message subject to 
queue name. That was due to wrong test:

if (destination.getTargetNode().getType() == AMQDestination.TOPIC_TYPE)

in method sendMessage in 
client/src/main/java/org/apache/qpid/client/BasicMessageProducer_0_10.java 
file. That condition is everytime evaluated as true, since target node is set 
to TOPIC type every time. Proper test is rather:

if (destination.getAddressType() == AMQDestination.TOPIC_TYPE)


> Sending message with a subject to a queue fails
> -----------------------------------------------
>
>                 Key: QPID-3377
>                 URL: https://issues.apache.org/jira/browse/QPID-3377
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.10
>            Reporter: Pavel Moravec
>              Labels: patch
>             Fix For: 0.12
>
>         Attachments: qpid-java-0.10.JIRA3377.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Having a queue bound just to default exchange and sending a message with a 
> subject to the queue results in dropping the message by the default queue.
> Replication steps:
> 1) qpid-config add queue testQueue
> 2) cd /usr/share/doc/qpid-java-0.10/examples
> 3) ./run_example.sh org.apache.qpid.example.Spout testQueue
> 4) qpid-stat -e shows the default '' exchange dropped the message
> Patch will be proposed by myself soon.

--
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:[email protected]

Reply via email to