Relevance of Spring Transaction
Enterprise Java application servers natively provide JTA (Java Transaction API) support, which enables distributed transaction, which is also known as global transaction, spanning multiple resources, applications and servers. Traditionally, Enterprise Java Beans (EJB) and Message Driven Beans (MDB) were used for container-managed transactions (CMT), which is based on JTA and JNDI. JTA transaction management is resource-intensive; its exception handling is based on checked exceptions and so is not developer-friendly. Moreover, unit testing is hard with EJB CMT.
For those who do not want to use resource-intensive JTA transactions, a local transaction is another available option, and one that allows you to programmatically ...
Get Spring MVC: Designing Real-World Web Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.