Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HFEJB mock exam Q 49

 
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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!