Bug 678313 - Java creates 'Durable' messages when sending to a reply-to address
Summary: Java creates 'Durable' messages when sending to a reply-to address
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-java
Version: 1.3
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: 2.0
: ---
Assignee: Rajith Attapattu
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-17 14:50 UTC by Mike Cressman
Modified: 2018-11-14 16:16 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-03 16:35:06 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Mike Cressman 2011-02-17 14:50:28 UTC
Description of problem:
When sending a message to a Java client with a reply-to address, the client responds with a durable message, even though the original message was not durable and the queue is not durable.


Version-Release number of selected component (if applicable):
1.3 GA release

How reproducible:
always

Steps to Reproduce:
1. Create a queue in a C++ client using address string
 myqueue;{create:always,delete:always,node:{type:queue,durable:False,x-declare:{exclusive:True,auto-delete:True}}}
2. Send a message to a java client through that queue with a reply-to address of
 myqueue;{node:{type:queue}}
3. Have the java client return the message via the reply-to address.

Actual results:
The message received back by the original client is marked as durable.

Expected results:
The message should not be marked durable.

Additional info:

If the same test is done with a python client responder, the message returned is not marked durable.

Comment 2 Rajith Attapattu 2011-02-28 21:31:02 UTC
This is not a bug.
The default delivery mode in JMS is persistent.

All messages sent through a message producer is marked persistent unless explicitly set to NON_PERSISTENT.

Comment 3 Gordon Sim 2011-03-03 16:54:42 UTC
From JMS spec, section 3.4.2 'JMSDeliveryMode':

          The JMSDeliveryMode header field contains the delivery mode specified
          when the message was sent.
          *When a message is sent, this field is ignored.* After completion of
          the send, it holds the delivery mode specified by the sending method.


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