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()

  3. onMessage()

  4. ejbRemove()

A3: C
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.190.175