aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Who does the rollback of a transaction? The client/the EJB container? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Who does the rollback of a transaction? The client/the EJB container?" Watch "Who does the rollback of a transaction? The client/the EJB container?" New topic
Author

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

Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 799
    
    1
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.
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1717
    
  25

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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Who does the rollback of a transaction? The client/the EJB container?