[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: DeliveryCount & ACKs

timfox do-not-reply at jboss.com
Wed Feb 18 01:14:59 EST 2009


"clebert.suconic at jboss.com" wrote : Just to complete the thread,
  | 
  | What I was suggesting was to keep incrementing deliveries only after ACK, and recover the delivery counter from the journal, by inspecting rolled back data. 
  | 
  | 
  | But as we talked on IRC, I only created a flag, and if that flag is set we would update the deliveryCount after sending.
  | 

DeliveryCount needs to be updated *before* delivery, not after.

If flag persistDeliveryCountBeforeDelivery = true then you also need to persist the update in storage *before* delivery.

If flag persistDeliveryCountBeforeDelivery = false then you can defer updating delivery count in storage until the reference is cancelled.



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210919#4210919

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210919



More information about the jboss-dev-forums mailing list