WHY DONT WE NEED EJBPOSTCREATE FOR SESSION BEAN?

Discussions

EJB programming & troubleshooting: WHY DONT WE NEED EJBPOSTCREATE FOR SESSION BEAN?

  1. HI ALL,

    CAN ANYBODY SAY ME WHY DONT WE NEED ejbPostCreate() METHOD FOR SESSION BEAN?

    IS IT THAT SESSION BEANS ARE NOT PERSISTENT IN NATURE???
    THNX IN ADVANCE!!!!!!!!!!!

    REGARDS,
    PRATAP
  2. EB are persistent object and have a PK to identify itself.
    Creating an EB is done in the following major step.
    1) ejbCreate that return the primary key
    2) association of the primary key with the EJBObject
    3) callback the ejbPostCreate

    SB doesnt need PK, so creation can be carried out into one sigle step (ejbCreate).

    hope this is enough
    regards
    (m)ike