Skip to main content

Transaction Management

  • Chapter
  • First Online:
Pro Spring 5
  • 2192 Accesses

Abstract

Transactions are one of the most critical parts of building a reliable enterprise application. The most common type of transaction is a database operation. In a typical database update operation, a database transaction begins, data is updated, and then the transaction is committed or rolled back, depending on the result of the database operation. However, in many cases, depending on the application requirements and the back-end resources that the application needs to interact with (such as an RDBMS, message-oriented middleware, an ERP system, and so on), transaction management can be much more complicated.

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

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    JDO support was dropped in Spring 5; thus, JdoTransactionManager is missing from the class diagram.

  2. 2.

    Spring 5 works only with Hibernate 5; implementations for Hibernate 3 and Hibernate 4 have been removed.

  3. 3.

    Support for JMS 1.1 was dropped in Spring 5.

  4. 4.

    This configuration was created with help from the official Atomikos documentation for integration with Spring at https://www.atomikos.com/Documentation/SpringIntegration and with help from the Stack Overflow community at https://stackoverflow.com/questions/33127854/hibernate-5-with-spring-jta .

  5. 5.

    This configuration is an annotation configuration adaptation of the XML configuration given as an example in the Atomikos documentation at https://www.atomikos.com/Documentation/SpringIntegration#The_Advanced_Case_40As_of_3.3_41 .

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Iuliana Cosmina, Rob Harrop, Chris Schaefer, and Clarence Ho

About this chapter

Cite this chapter

Cosmina, I., Harrop, R., Schaefer, C., Ho, C. (2017). Transaction Management. In: Pro Spring 5. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2808-1_9

Download citation

Publish with us

Policies and ethics