Programming Tutorials

Interview Question: What is the difference between ejbCreate() and ejbPostCreate?

By: Ash in Interview Tutorials on 2008-08-13  

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.

 

 

 

 





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

Interview Question: What is abstract schema?

Interview Question: What is the difference between ejbCreate() and ejbPostCreate?

Interview Question: What is deployment descriptor?

Interview Question: Is Struts compatible with other Java technologies?

What is the difference between JTS and JTA?

Interview Question: If the framework doesn't do what I want, can I request that a feature be added?

Interview Question: Why aren't the Struts tags maintained as part of the Jakarta Taglibs project ?

What are types of J2EE clients?

What are the call back methods in Session bean?

Interview Question: How do I install Struts?

What are implicit Objects available to the JSP Page?

What is similarities/difference between an Abstract class and Interface?

Interview Question: Why it is called Struts?

Question: What is the directory structure of a web application?

Tell me something about J2EE component?

Latest Articles (in Interview)