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 )

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

What is difference between Java Bean and Enterprise Java Bean?

What are the services provided by a J2EE container?

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

What is transient variable?

Question: How would you go about analyzing performance of an application?

What is Deployment Descriptor?

What is JAXP?

What is J2EE Connector architecture?

Interview Question: What about JSTL and JavaServer Faces ?

Name the containers which uses Border Layout as their default layout?

What is JSP declaration?

Interview Question: What is the difference between EAR, JAR and WAR file?

The output of System.out.println(5>>2) in Java

Interview Question: Is Struts compatible with other Java technologies?

Latest Articles (in Interview)