Summary

Today you learned what transactions are, and why they are important in J2EE applications. Both local (standard) and distributed (global) transaction types were discussed with the emphasis on distributed transactions. The JTA API was outlined, and you were shown how it is used in managing distributed transactions among multiple resource managers. We highlighted how transactions work across all J2EE tiers. Both bean-managed transaction and container-managed transaction were explained. An example of distributed transaction was given, where two resource manager are used: a JDBC resource manager and a JMS resource manager. The example used bean-managed transaction demarcation.

Get Sams Teach Yourself EJB in 21 Days 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.