Skip to content
Ameen Abozaid
Planned lessonJNR-031-L05

Propagation basics

  • Lesson 5 of 8
  • Junior
On This Lesson 4 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

know what happens when a transactional method calls another.

Planned topics

  • Default REQUIRED: join the existing transaction or start one.
  • Inner failure marks the whole shared transaction for rollback.
  • REQUIRES_NEW suspends the outer one and runs a separate transaction; use it rarely (for example an audit log that must survive).
  • Read-only: @Transactional(readOnly = true) for queries; it is a hint that can skip dirty checking.
  • Other modes exist; learn them when you need them.
Draft outline details

Demonstration

a diagram: placeOrder (REQUIRED) → reserve (REQUIRED) share one transaction; audit (REQUIRES_NEW) has its own.

Check your understanding

What does the default REQUIRED do?

Show answer

Joins the current transaction or starts a new one.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.