[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-1831) Implement decent shutdown of ConnectionConsumer

Yong Hao Gao (JIRA) jira-events at lists.jboss.org
Thu Nov 25 11:59:30 EST 2010


    [ https://jira.jboss.org/browse/JBMESSAGING-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565443#comment-12565443 ] 

Yong Hao Gao commented on JBMESSAGING-1831:
-------------------------------------------

First idea:

Mark a connection consumer session as a special session (let's call it CCSession), it has an extra counter and a 'markClose' flag. We know this session is exclusively used by CC and only has one consumer.

when a close is called on a CCSession, we mark it and check the counter, if > 0 , do nothing

when deliver a message through this session, we add the counter by 1,
when a message is acked/cancelled through this session, we reduce it by 1. if the CCSession is marked closed, check its counter and close if the counter is zero.




> Implement decent shutdown of ConnectionConsumer
> -----------------------------------------------
>
>                 Key: JBMESSAGING-1831
>                 URL: https://jira.jboss.org/browse/JBMESSAGING-1831
>             Project: JBoss Messaging
>          Issue Type: Bug
>          Components: AS Integration
>    Affects Versions: 1.4.0.SP3.CP11, 1.4.7.GA
>            Reporter: Yong Hao Gao
>            Assignee: Yong Hao Gao
>            Priority: Critical
>             Fix For: 1.4.0.SP3.CP12, 1.4.8.GA
>
>
> The JBossConnectionConsumer should track all deliveries and only close its sessions when all deliveries are complete. 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list