Header Ads

  • Breaking Now

    What is the difference between ejbCreate() and ejbPostCreate() in EntityBean?

    An ejbCreate() method is called just before persisting the data into underlying database in case of Entity beans. It will create a new record in the database. A create () method defined in Home interface will correspond to an ejbCreate () method in bean class with the same arguments.

    ejbPostCreate() is called by EjbContainer immediately after ejbCreate() method.This method may also be used to reset transaction related parameters.

    Post Top Ad

    Post Bottom Ad