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  mock exam question on locking & transactions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark " mock exam question on locking & transactions" Watch " mock exam question on locking & transactions" New topic
Author

mock exam question on locking & transactions

subba rao
Greenhorn

Joined: Apr 24, 2008
Posts: 24
A named query that sets an exclusive pessimistic on the entities returned by the query by setting the
NamedQuery lockMode element to LockModeType.PESSIMISTIC_FORCE_INCREMENT. The
application starts transaction and executes the query. Which of the following statements is correct
about the entities returned by the query?
A. Only the current transition may modify or delete the entity instances.
B. The current transaction may NOT modify or delete the entity instances.
C. Other concurrent transactions may modify or delete the entity instances.
D. Other concurrent transactions may modify but MAY NOT delete the entity instances

what is the answer for this Q?

in my view the answer should be A.

 
I agree. Here's the link: jrebel
 
subject: mock exam question on locking & transactions
 
Similar Threads
Difference between Read Lock and Write Lock
Query Flush Mode and Persistence Context
EJB3 Beta Certification - EntityManager BASIC notes.
Passed SCBCD 5.0 :)
My Study Notes