Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

EJB%20Interview%20Questions%20and%20Answers

Question: 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.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook