[
http://jira.jboss.com/jira/browse/JBMESSAGING-875?page=comments#action_12... ]
Tim Fox commented on JBMESSAGING-875:
-------------------------------------
Also no need to cancel any messages back to the server for a Non durable sub
Non durable subscription optimisation
-------------------------------------
Key: JBMESSAGING-875
URL:
http://jira.jboss.com/jira/browse/JBMESSAGING-875
Project: JBoss Messaging
Issue Type: Sub-task
Reporter: Tim Fox
Assigned To: Tim Fox
Fix For: 1.2.1
Since non durable subscriptions only live for the life-time of the consumer the it's
struck me that we don't actually need to send any acks from the client to the server
as messages are acknowledged for non durable subs.
Basically I think we can acknowledge them before they are sent from server to client.
This is because there's no case where messages will be redelivered from the server to
the non durable sub, therefore no need for acks.
On session recovery and session rollback messages are redelivered locally (i.e. they are
already on the client) so no need for the server to redeliver.
This also means we don't need to maintain a delivery list in the server consumer
endpoint in this case, and the server consumer endpoint can return a done delivery every
time.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira