You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Jason Sherman (JIRA)" <ji...@apache.org> on 2013/04/16 19:51:16 UTC

[jira] [Created] (AMQ-4472) consumer.close() on transacted session does not release prefetched messages

Jason Sherman created AMQ-4472:
----------------------------------

             Summary: consumer.close() on transacted session does not release prefetched messages
                 Key: AMQ-4472
                 URL: https://issues.apache.org/jira/browse/AMQ-4472
             Project: ActiveMQ
          Issue Type: Bug
          Components: JMS client
    Affects Versions: 5.8.0
            Reporter: Jason Sherman


When using transactions an issue can arise where the consumer has messages in it's prefetch and when consumer.close() is called the consumer is not closed and does not release the messages.  


The use case is as follows:

1) Create producer
2) Create consumer
3) Send message to queue
4) Commit session
5) Close the consumer
6) Start a new consumer
7) Try to receive the message

Test case will be attached shortly.

--
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