Quiz

1:A stateless session bean implements which of the following interfaces?
  1. javax.ejb.StatelessBean

  2. javax.ejb.SessionBean

  3. javax.ejb.EJBObject

  4. javax.ejb.SignOnHome

A1: B
2:Which of the following methods is not used by a stateless session bean?
  1. ejbCreate()

  2. ejbRemove()

  3. setSessionContext()

  4. ejbActivate()

A2: D
3:Which of the following is true for a stateless session bean?
  1. Maintains conversational state on behalf of a client

  2. Activation and passivation are applicable

  3. Can be pooled

  4. Can't open database connections

A3: C

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.