1. Home
  2. Computing & Technology
  3. Computer Certification
SCBCD Practice Test
20 Free SCBCD Practice Questions

Answer 5

Correct answer: c & e

Explanation:

Choices A and D are incorrect because the ejbFind() and ejbSelect() methods are declared to be abstract in an entity bean class. The Bean Provider only needs to declare them but not to implement them. It is the responsibility of the EJB container to provide an implementation for these methods.

Choice B is incorrect since the setRollbackOnly() method is defined in the javax.ejb.EJBContext and javax.transaction.UserTransaction interfaces that must be implemented by the EJB container.

Choices C and E are correct. The Bean Provider must implement the unsetEntityContext() and ejbLoad() methods. Note that the former is invoked when the life cycle of the entity bean instance has been terminated by the EJB container. The latter is called when the container needs to synchronize the state of an entity bean instance with the entity object’s persistent state. Please refer to section 10.5.2 of the EJB 2.0 specification for further details.

Test Objective:

CMP Entity Bean Lifecycle

 

Next page > Question 6

Explore Computer Certification

More from About.com

  1. Home
  2. Computing & Technology
  3. Computer Certification

©2008 About.com, a part of The New York Times Company.

All rights reserved.