Multiple choice technology web technology

When an ejbCreate<method> method is invoked, what other methods mustthe container invoke?

  1. ejbActivate()

  2. ejbStore()

  3. ejbFindByPrimaryKey()

  4. ejbPostCreate()

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

When an ejbCreate is invoked, the container must subsequently invoke the corresponding ejbPostCreate with the same parameters. This post-create method allows additional initialization after the primary key is assigned. ejbActivate() is for passivation/activation, ejbStore() is for synchronization, and ejbFindByPrimaryKey() is a finder method - none are automatically invoked after ejbCreate.