Christian Posta created QPID-4598:
-------------------------------------

             Summary: AMQP JMS client does not respect JMS Priority when set 
directly on the message
                 Key: QPID-4598
                 URL: https://issues.apache.org/jira/browse/QPID-4598
             Project: Qpid
          Issue Type: Bug
          Components: Java Client
    Affects Versions: 0.20
            Reporter: Christian Posta
            Priority: Minor


The following code won't set the priority correctly:

{code}
        TextMessage amqpMessage = amqpSession.createTextMessage();
        amqpMessage.setText("hello");
        amqpMessage.setJMSPriority(9);
        p.send(amqpMessage);
{code}

because MessageProducerImpl.send(message) uses the following code to pass the 
priority:

{code}
    public void send(final Message message) throws JMSException
    {
        send(message, getDeliveryMode(), getPriority(), getTimeToLive());
    }
{code}

and the call to getPriority() gets the Message producer's priority, not the 
message's priority.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to