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

Justin Bertram updated ARTEMIS-4111:
------------------------------------
    Description: 
When calling {{javax.jms.Session.recover()}} with 
{{ActiveMQJMSConstants.INDIVIDUAL_ACKNOWLEDGE}}, unacknowledged messages must 
be returned to the queue, that is, {{ClientSession.rollback(false)}} must be 
called from {{Session.recover()}}.  However, currently if you call 
{{ClientSession.rollback(true)}}, the 
{{ActiveMQServerMessagePlugin.messageAcknowledged()}} is called. Which is 
illogical and misleading.

Tests are also needed to tests the {{Session.recover()}} of the call with 
parameters {{INDIVIDUAL_ACKNOWLEDGE}} and the operation of the plugin.

  was:
When calling {{javax.jms.Session.recover()}} with 
{{ActiveMQJMSConstants.INDIVIDUAL_ACKNOWLEDGE}}, unacknowledged messages must 
be returned to the queue, that is, {{ClientSession.rollback(false)}} must be 
called from {{Session.recover ()}}.  In existing versions If you call 
{{ClientSession.rollback(true)}}, the 
{{ActiveMQServerMessagePlugin.messageAcknowledged()}} is called. Which is 
illogical and misleading.

Tests are also needed to tests the {{Session.recover()}} of the call with 
parameters {{INDIVIDUAL_ACKNOWLEDGE}} and the operation of the plugin.


> Session.recover () call ActiveMQServerMessagePlugin.messageAcknowledged 
> (NORMAL)
> --------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-4111
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4111
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: JMS, Tests
>    Affects Versions: 2.27.1
>            Reporter: Andrey Yesenkov
>            Priority: Major
>
> When calling {{javax.jms.Session.recover()}} with 
> {{ActiveMQJMSConstants.INDIVIDUAL_ACKNOWLEDGE}}, unacknowledged messages must 
> be returned to the queue, that is, {{ClientSession.rollback(false)}} must be 
> called from {{Session.recover()}}.  However, currently if you call 
> {{ClientSession.rollback(true)}}, the 
> {{ActiveMQServerMessagePlugin.messageAcknowledged()}} is called. Which is 
> illogical and misleading.
> Tests are also needed to tests the {{Session.recover()}} of the call with 
> parameters {{INDIVIDUAL_ACKNOWLEDGE}} and the operation of the plugin.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to