Abstract
Transactions are about units of work, which either succeed in total or produce no result at all. This sounds easy at first, but consider cases where databases are involved, or queues and topics inside an associated messaging provider. Needless to say, in cases where we consider a transaction to have failed, rolling back database changes and messages in a topic or queue can become a complex matter if many tables and queues or topics are involved. The story becomes even more complex if the parties involved run on different network nodes, in which case we are talking about distributed transactions.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Peter Späth
About this chapter
Cite this chapter
Späth, P. (2019). Maintaining State Consistency with JTA Transactions. In: Beginning Jakarta EE. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5079-2_10
Download citation
DOI: https://doi.org/10.1007/978-1-4842-5079-2_10
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-5078-5
Online ISBN: 978-1-4842-5079-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)