ActiveMQ message reliability - things

Partial things producers, consumers sign for migraine

 

  Set to true, you need to manually submit

 

  Set to false, automatic submission

 

 

Manual submission advantage that we can roll back, when the whole thing submission, inside a strip fails, you can roll back things, so to ensure the consistency of the data,

Why do you want to use a manual submission, automatically more than good?

For that matter, if things more complicated, there are many operations, safety manual submission is certainly good, if small operation, you can set a custom submit

 

If set to true, you need to submit manually before closing the session things, if things which a bar fails, you can roll back things

 

 Commit and rollback

 

Guess you like

Origin www.cnblogs.com/steakliu/p/11590209.html