Quiz

1:A message-driven bean implements which of the following interface(s)?
  1. javax.ejb.EnterpriseBean

  2. javax.ejb.MessageDrivenBean and javax.ejb.MessageListener

  3. javax.ejb.MessageDrivenBean and javax.jms.MessageListener

  4. javax.ejb.MessageDrivenBean

A1: C
2:Which one of the following statements is true for message-driven beans?
  1. MDBs provide only local interfaces for client access.

  2. MDBs provide only remote interfaces for client access.

  3. MDBs can provide either local or remote interfaces for client access.

  4. MDBs do not provide either local or remote interfaces for client access.

A2: D
3:Which one of the following message-driven bean methods is called by the EJB container when a message has arrived for the bean to service?
  1. ejbCreate()

  2. setMessageDrivenContext() ...

Get Sams Teach Yourself EJB in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.