Skip to main content

Maintaining State Consistency with JTA Transactions

  • Chapter
  • First Online:
Beginning Jakarta EE
  • 1003 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Peter Späth

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics