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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
JDO support was dropped in Spring 5; thus, JdoTransactionManager is missing from the class diagram.
- 2.
Spring 5 works only with Hibernate 5; implementations for Hibernate 3 and Hibernate 4 have been removed.
- 3.
Support for JMS 1.1 was dropped in Spring 5.
- 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.
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
Rights 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
DOI: https://doi.org/10.1007/978-1-4842-2808-1_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2807-4
Online ISBN: 978-1-4842-2808-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)