BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Presentation: Transaction Management Strategies in Mission Critical Applications

Presentation: Transaction Management Strategies in Mission Critical Applications

A core part of Spring's middle tier support is the transaction management support. This session, presented by Spring co-founder & Chief Architect lead Juergen Hoeller, presents several interesting "mission critical" cases and shows you how to properly handle them using transactions driven by Spring 2. You'll learn the ins-and-out of the "dark art" that is transaction management within a high-volume mission-critical JEE application.

Watch Transaction Management Strategies in Mission Critical Applications (89 min)

The presentation begins with Juergen explaining some transaction management myths:
  • A serious, mission-critical enterprise application requires XA transactions.
    • Not true: Many enterprise application do not require XA transactions at all.
  • Proper transactional O/R Mapping integration requires XA / JTA.
    • Not true: O/R Mappers usually just operate on a database connection and add some additional cache housekeeping, which does not require XA.
  • For combining JDBC and JMS access, XA transactions are a necessity.
    • Not true: Many enterprise applications use JMS with local transactions or even with plain acks.
  • And the biggest myth of it all: Proper transaction management requires EJB.
    • While in reality, EJB just offers a baked-in style for transaction demarcation. The hard work is done by the underlying transaction manager...Or, even broader: Proper transaction management requires a full J2EE server.
    • What about distributed transaction propagation?
    • not actually a responsibility of the core transaction manager...rather context passing in the remoting protocol EJB containers (and J2EE servers) build this on top of RMI, simply piggybacking the XID there
The presentation goes on to review best practices for doing native and JTA transactions with Spring.  See also a related book on InfoQ.com: Java Transaction Design Strategies, by Mark Richards.

 

Rate this Article

Adoption
Style

BT