• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

setRollBack() Query

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If CMT transaction calls BMT method, CMT transaction suspended and BMT starts its own transaction by temporarily suspending CMT transaction, now if we marked setRollback() into BMT,does it means that CMT transaction will also not get commit or i have to understand that that are 2 different transaction.

According to what i understand was CMT ->propogate->BMT so both are individual transaction and will make not difference to CMT if BMT make setrollBack(), BMT transaction will not commit but has no effect on CMT.

Can anybody help me out in this case.

Sanneel
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are correct. The rollback on the BMT transaction has no effect on the suspended CMT transaction. The CMT transaction "doesn't know" about the BMT transaction - it may commit despite the rollback on the BMT transaction or it could rollback because its running into different problems entirely.
 
Every time you till, you lose 30% of your organic matter. But this tiny ad is durable:
Master Gardener Program
https://coderanch.com/t/771761/Master-Gardener-Program
reply
    Bookmark Topic Watch Topic
  • New Topic