ejbCreate() is called before adding a new record to a database
ejbCreate() can be used only in bean-managed beans
Each ejbCreateXXX() method should have corresponding createXXX() method in the home or local interface
ejbPostCreate() can be used only in container-managed beans
Both ejbCreate() and ejbPostCreate() methods are called after the bean has been written to the database
For bean-managed EJBs ejbPostCreate() is responsible for writing a new record to a database
Both ejbCreate() and ejbPostCreate() are optional in EntityBean
|