Tuesday, November 29, 2011

What is the difference between ejbCreate() and ejbPostCreate

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.
Category:EJB Interview Questions

No comments:

Post a Comment