Grails Transactions

Properly performing multiple data updates requires a transaction, but how do we do this in Grails? Services are the best option, but there are different approaches that can be used. We’ll look at how to effectively use transactions and how to customize transaction attributes such as isolation and propagation levels.

We’ll also look at using two-phase commit (2PC) when using multiple datasources or when combining database updates with JMS messaging. And we’ll also look at testing to ensure your code is properly transactional.

Video producer: