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