Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about bean-managed transactions

 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe because it is the responsibility of an EJB container provider only?
 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Raf.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic