GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  EJB

 Print  |  
Question:  What is the difference between ejbstore and ejbload?



April 04, 2009 01:22:30 #3
 VenkitaKrishnan   Member Since: April 2007    Total Comments: 7 

RE: What is the difference between ejbstore and ejbload?
 
These 2 callback methods are avaliable in the EntityBean Interface and will be used by the container to load the data from the Database into the Bean (ejbLoad) and from the bean to the Database (ejbStore).

We have to manually implemented these methods if we are using BMP (Bean Managed Persistence), although no one is using it in that fashion.

From EJB Specs 2.1, CMP (Container Managed Persistence) has become much easier and these 2 call back methods will be implemented by the container for you.
     

 

Back To Question