activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Gomes (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (AMQNET-61) Auto-Acknowledgement Mode always sends unnecessary ACK message
Date Thu, 13 Sep 2007 00:03:22 GMT

    [ https://issues.apache.org/activemq/browse/AMQNET-61?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40133
] 

semog edited comment on AMQNET-61 at 9/12/07 5:01 PM:
----------------------------------------------------------

Added a new {{AutoClientAcknowledge}} mode that will put the consumer into client acknowledgment
mode and will send the ACK message automatically.  This is the same action that {{AutoAcknowledge}}
would perform prior to this fix.  I then changed the {{AutoAcknowledge}} mode to *not* send
an ACK message back to the server.

Note: the patch for MessageConsumer.cs was generated after applying the patches for [AMQNET-55].
Note: the patch for StompWireFormat.cs was generated after applying the patches for [AMQNET-53],
[AMQNET-56], and [AMQNET-59].

      was (Author: semog):
    Added a new {{AutoClientAcknowledge}} mode that will put the consumer into client acknowledgment
mode and will send the ACK message automatically.  This is the same action that {{AutoAcknowledge}}
would perform prior to this fix.  I then changed the {{AutoAcknowledge}} mode to *not* send
an ACK message back to the server.
  
> Auto-Acknowledgement Mode always sends unnecessary ACK message
> --------------------------------------------------------------
>
>                 Key: AMQNET-61
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-61
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: ActiveMQ Client, MSMQ, Stomp
>         Environment: Windows XP SP2
> .NET 2.0
>            Reporter: Jim Gomes
>            Assignee: James Strachan
>            Priority: Minor
>         Attachments: IConnection.cs.patch.txt, MessageConsumer.cs.patch.txt, StompWireFormat.cs.patch.txt
>
>
> When a MessageConsumer receives a message, it sends a MessageAck even when the acknowledgment
mode is set to AutoAcknowledge.  This results in an error message being sent back to the client
stating that there is no such message to acknowledge.
> According to standard JMS semantics, when AutoAcknowledge mode is used, the client does
not need to (and apparently should not) send back an ACK message.  An ACK message should only
be sent back when the subscription is in ClientAcknowledge or DupsOkAcknowledge mode.  Sending
back unnecessary responses creates unnecessary network traffic and load on a high-speed server.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message