1

If a method of service is marked as @Transactional with propagation nested, and inside it there are many calls to other @Transactional methods, each one of these methods will use its own session? It should represent many connections to db for just one method call no?

Harshal Patil
  • 6,485
  • 8
  • 38
  • 56
ilopezluna
  • 5,437
  • 7
  • 39
  • 74

1 Answers1

2

It looks like PROPAGATION_REQUIRED is better option for your purpose. From its javadoc:

Support a current transaction; create a new one if none exists.

Refer this link for more details

Harshal Patil
  • 6,485
  • 8
  • 38
  • 56