• Post Reply Bookmark Topic Watch Topic
  • New Topic

HFEJB mock exam Q 49  RSS feed

 
paresh vernekar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a query regarding the following question from HFEJB mock exam.

Which are true about transactions in EJB 2.0?

A Only one database can be updated within a single transaction
B Entity beans with BMT demarcation must use the setStatus method instead of the setRollbackOnly method
C Entity beans with BMT demarcation must use the getStatus method instead of the getRollbackOnly method
D BMT demarcation should be used when beans access resource managers that do not support transactions
E The 'SessionSynchronization' interface can be used only by stateful session beans

I had chosen option E.

However the correct option given are C & E

I am puzzled about C, as entity beans are not supposed to use BMT.

Can someone please explain how option C can be considered correct ?

Regards,
Paresh Vernekar
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This thread.
 
paresh vernekar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for providing the links for this post as well as the previous one.

Regards,
Paresh Vernekar
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!