Skip to main content
Book cover

Pro Spring pp 395–438Cite as

Transaction Management

  • Chapter
  • 388 Accesses

Summary

Transactions are a key part of ensuring data integrity in almost any type of application. In this chapter, you learned how to use Spring to manage transactions with almost no impact on your source code. You now know how to use local and global transactions and are aware of the performance and testing implications of using them.

We provided various examples of transaction implementation—declarative using application context files, declarative using source level metadata, and programmatic—and we discussed the practical uses and implications on coding style and manageability of each.

Local transactions are supported outside of a J2EE application server and almost no additional configuration is made to enable local transaction support in Spring. Unfortunately, the setup for global transactions greatly depends on your J2EE application server. Even though it will most likely be very similar to the JBoss example we showed in this chapter, you will need to refer to the application server documentation for more details.

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

Buying options

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 PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   49.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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Rob Harrop and Jan Machacek

About this chapter

Cite this chapter

(2005). Transaction Management. In: Pro Spring. Apress. https://doi.org/10.1007/978-1-4302-0004-8_12

Download citation

Publish with us

Policies and ethics