[jboss-jira] [JBoss JIRA] Updated: (JBMESSAGING-1294) Problem in jms message listener redelivery

Tim Fox (JIRA) jira-events at lists.jboss.org
Tue Sep 30 07:54:20 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBMESSAGING-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Fox updated JBMESSAGING-1294:
---------------------------------

     Summary: Problem in jms message listener redelivery  (was: Limit core sessions to also transacted for acks)
    Priority: Major  (was: Critical)


> Problem in jms message listener redelivery
> ------------------------------------------
>
>                 Key: JBMESSAGING-1294
>                 URL: https://jira.jboss.org/jira/browse/JBMESSAGING-1294
>             Project: JBoss Messaging
>          Issue Type: Task
>            Reporter: Tim Fox
>            Assignee: 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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list