Announcement Announcement Module
Collapse
No announcement yet.
When does commit happen in declarative and programmatic transactions? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • When does commit happen in declarative and programmatic transactions?

    I looked in to some code example of declarative transaction management in spring with JDBC. I was looking for where actually the commit happens? Say in bean 1 we have method1 with propagation required which does some transaction and after that call method2 of bean2 with propagation required. So when the commit happens in this case?

    In case programmatic transaction do we have to commit the transaction manually?
    In programmatic transaction we can bot use the transaction definition like propagation required or propagation new Right? As per my understanding,these are Declarative transaction.

  • #2
    Hello

    I suggest you read 10. Transaction Management

    So when the commit happens in this case?
    It is managed by Spring, it is a huge advantage, this concern is handle by the Spring Container, you must only to worry about your bussiness logic

    Now if you want know the exact flow process about transaction management, I suggest you do a research in the API

    Comment

    Working...
    X