Discussions

EJB programming & troubleshooting: when is ejbLoad called in a BMP entity bean?

  1. when is ejbLoad called in a BMP entity bean? (1 messages)

    my entity bean calls the ff :

    ejbCreate() --> i assign values in my bean
    ejbStore()

    when is ejbLoad called?
    Should I be the one to manually call that?
    What is the difference between ejbCreate / ejbLoad()?
  2. when is ejbLoad called?
    A: EjbLoad()is called by container in activation process. Container loads the state from DB and sets the instance fields.

    Should I be the one to manually call that?
    A: you souldnt

    What is the difference between ejbCreate / ejbLoad()?
    When Client calls EJBHome create(), container calls ejbCreate() then
    container calls ejbPostCreate(). Now a records is created in the Datastore (DB) and the returns the remote reference to the caller client.