Client View of Bean  «Prev  Next»

EJB Beans Business Methods - Quiz

Select the best answer or answers for each question.
 
1. What exceptions may the business methods throw?
Please select all the correct answers.
  A. EJBException
  B. RemoteException
  C. Application-specific exceptions
  D. NoSuchObjectException

2. What are useful return types of the business methods?
Please select all the correct answers.
  A. A reference to the home object
  B. An object type chosen by the bean developer
  C. A reference to the EJBObject
  D. void.

3. For what length of time is the handle, returned from the EJBObject, valid?
Please select all the correct answers.
  A. Until the container crashes
  B. A length of time set by the container
  C. Until the bean instance is removed by the client
  D. Five days