[jboss-jira] [JBoss JIRA] Created: (JBMESSAGING-1294) Limit core sessions to also transacted for acks

Tim Fox (JIRA) jira-events at lists.jboss.org
Tue May 27 10:52:51 EDT 2008


Limit core sessions to also transacted for acks
-----------------------------------------------

                 Key: JBMESSAGING-1294
                 URL: http://jira.jboss.com/jira/browse/JBMESSAGING-1294
             Project: JBoss Messaging
          Issue Type: Task
            Reporter: Tim Fox
         Assigned To: Tim Fox
             Fix For: 2.0.0 Beta


Currently core sessions have a batch size and can be set to auto commit acks. These is fairly complex and makes it hard to apply
JMS message listener redelivery semantics.

With a JMS message listener auto_ack or dups_ok, if a runtimeexception is thrown from onMessage the last message should be redelivered.

An auto_ack session is marked as auto commit acks, so if we immediately rollback when receiving the exception, the last message is acked so is not redelivered.

Solution here is never to auto commit acks. Sessions are always transacted (sends can be auto_acked or have concurrency problems when concurrently receiving and sending messages in a dups_ok session), and acks must be explicitly acked anc committed by the JMS layer.

This should simplify the code too.

Uncomment MessageConsumerTest::testExceptionMessageListener1 and 2 when this is complete

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

        



More information about the jboss-jira mailing list