• 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
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Who does the rollback of a transaction? The client/the EJB container?

 
Bartender
Posts: 2299
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On Frits's notes, p. 60,


The client will rollback the transaction because of the mark set by the CM bean.



In EJB in Action , p.171


In a CMT, the container starts, commits and rolls back a transaction on your behalf.




In BMT, the client programmatically determines when the container should rollback the transaction.
In CMT, the container determines when to rollback.
So, I think in both BMT and CMT, the transaction manager in the EJB container which does the rollback of transaction.
I guess the client itself does not rollback the transaction.
 
Creator of Enthuware JWS+ V6
Posts: 3411
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah I should rephrase that sentence, thanks!

What I meant is that the transaction is rolled back in the client, either by the container (CMT) or by the client-software invoking the rollback() method (BMT).
 
A lot of people cry when they cut onions. The trick is not to form an emotional bond. This tiny ad told me:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic