1.

What Is The Difference Between Ejbcreate() And Ejbpostcreate?

Answer»

The purpose of ejbPostCreate() is to perform clean-up database operations after SQL INSERTs (which OCCUR when EJBCREATE() is called) when working with CMP ENTITY beans. ejbCreate() is called before database INSERT operations. You NEED to USE ejbPostCreate() to define operations, like set a flag, after INSERT completes successfully.

The purpose of ejbPostCreate() is to perform clean-up database operations after SQL INSERTs (which occur when ejbCreate() is called) when working with CMP entity beans. ejbCreate() is called before database INSERT operations. You need to use ejbPostCreate() to define operations, like set a flag, after INSERT completes successfully.



Discussion

No Comment Found