File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Question about bean-managed transactions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Question about bean-managed transactions" Watch "Question about bean-managed transactions" New topic
Author

Question about bean-managed transactions

Treimin Clark
Ranch Hand

Joined: Nov 12, 2008
Posts: 757
The question below is from the diagnostic exam of WhizLabs. (Question number 48).

Choose 1 incorrect statement about bean-managed transactions:

[A] Programmatic transaction demarcation is also called as bean managed transaction demarcation.
[B] In case of bean-managed transaction responsibility of transaction management is on bean provider while in case of container managed transaction demarcation responsibility is on EJB container and server provider.
[C] Javax.transaction.UserTransaction interface is used to demarcate bean-managed transactions.
[D] For bean managed transaction demarcation all resource manager access should happen between UserTransaction.begin and UserTransaction.commit


According to the WhizLabs, the correct answer is B, as that statement is incorrect.

Why is that statement is incorrect?
Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
Maybe because it is the responsibility of an EJB container provider only?
Treimin Clark
Ranch Hand

Joined: Nov 12, 2008
Posts: 757
Thanks Raf.
 
Consider Paul's rocket mass heater.
 
subject: Question about bean-managed transactions
 
Similar Threads
Doubt about Container Services
BMT Must not be used with Entity Beans
Doubt in stateful session bean
MDB Message Receipt Part of Transaction
Doubt on Enthuware mock regarding MDBs